Set Playlist Track
-
benjavides
- Posts: 19
- Joined: 15 Sep 2023 20:47
Set Playlist Track
I would like to create an OSC command: /audio/playback/set/fade
which receives a single int number indicating a song index.
It should start playing that song in the currently open playlist. It should behave in this way:

It works as expected if there is music playing. But when there is not, it loads the specified index track as the next one and starts playing the track that was set as the “next one” before the command executed.
My current workaround is to unpause the playlist (if it's paused) before executing the instructions. So that it always acts as if music is running.

The problem with this is that the public will be able to listen to the fading transition between the song that was originally paused and the song that the user is setting.
Is there a better way to achieve what I want?
which receives a single int number indicating a song index.
It should start playing that song in the currently open playlist. It should behave in this way:
- If there is music playing:
- load the specified track (in the next avaliable player) and start fading to it.
- When the fade finishes, unload the track that was playing.
- Load the track that is after the specified index as the “next track”
- If there is no music playing:
- load the specified track and start playing it.
- Load the track that is after the specified index as the “next track”

It works as expected if there is music playing. But when there is not, it loads the specified index track as the next one and starts playing the track that was set as the “next one” before the command executed.
My current workaround is to unpause the playlist (if it's paused) before executing the instructions. So that it always acts as if music is running.

The problem with this is that the public will be able to listen to the fading transition between the song that was originally paused and the song that the user is setting.
Is there a better way to achieve what I want?
Re: Set Playlist Track
It seams almost the same issue as in your other post.
The LOAD_SELECTED command is executed asyc, as such, the SLEEP needs to be large enough.
Try setting it to 3 seconds or more...
The LOAD_SELECTED command is executed asyc, as such, the SLEEP needs to be large enough.
Try setting it to 3 seconds or more...
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution