Results 1 to 1 of 1

Thread: Add Music Player events for scripting

  1. #1

    Lightbulb Add Music Player events for scripting

    It would be very nice to have events that trigger when something happens with the Music Player.

    There are several kinds of events that would fire when using the Music Player. Here are the ones I'd suggest:
    • onMusicChange() would trigger when a song is changed, either when automatically going to the next song in the playlist or when skipping forward or backward (either by hand or by scripting). It would pass the index and new name of the song, and which player changed the music, if any
    • onSongAdd()/onSongRemove(): when someone adds/loads a song (to the playlist or just the current song) or when someone removes a song from the playlist. Passes the name and index of the new song and the player that added/removed it.
    • onPlayPause(): fires when a song is played or paused. Passes which of the two it was, and which player did it, if any.
    • onLoop(): fires when a song loops. Passes the name and index of the song being looped.

    This would potentially let us do some cool scripting involving music changes and such! It would be especially powerful if combined with this de-sync feature suggestion!
    Last edited by Unreal_Ed; 08-18-2019 at 02:32 PM.

Similar Threads

  1. Music player loop bug and 1-title-playlis bug
    By ttsbalance in forum Bug Reports
    Replies: 2
    Last Post: 08-23-2019, 09:31 AM
  2. Why can't we add our own custom music for the mp3 player?
    By lavie in forum General Discussion
    Replies: 3
    Last Post: 05-22-2017, 09:23 PM
  3. A way to HOTKEY scripting events.
    By Tragic in forum Scripting
    Replies: 8
    Last Post: 05-17-2017, 08:05 PM
  4. TTS Scripting is missing essential events
    By Thels in forum Scripting Suggestions
    Replies: 3
    Last Post: 02-10-2017, 04:56 AM
  5. Custom Music for MP3 Player
    By Draggo in forum Suggestions
    Replies: 18
    Last Post: 10-16-2016, 05:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts