Page 1 of 1

adding a stream to plat next in current playlist.

Posted: 13 Nov 2020 00:20
by phonic
Hi,
I need to find a solution to add a stream URL to the current playlist so it plays next via using TCP commands like "PLS_CURRENT_APPEND_FILE" but adds as next track not just append to bottom of playlist.

Any help you can offer would be most appreciated.

Thanks!

Re: adding a stream to plat next in current playlist.

Posted: 13 Nov 2020 10:25
by radio42
I am not fully sure, about your exact use case, but here are some hints:

You might take a look to the command PLS_CURRENT_LOAD_SELECTED, so that you load the selected track (i.e. the last added, which can be selected via PLS_CURRENT_SELECT_ENTRY.
Example:
PLS_CURRENT_APPEND_FILE ....
PLS_CURRENT_SELECT_ENTRY 99999
PLS_CURRENT_LOAD_SELECTED

Else, if you want to spontaneous play a file or URL, you might also take a look at:
- EXEC_PLAY_FILE
or
- EXEC_DIRECTPLAYER_xxx commands

Another option might be to use the MODStreamWatcher feature.
See here: http://www.proppfrexx.radio42.com/forum ... t=57&p=212

Re: adding a stream to plat next in current playlist.

Posted: 13 Nov 2020 15:53
by phonic
radio42 wrote: 13 Nov 2020 10:25 I am not fully sure, about your exact use case, but here are some hints:

You might take a look to the command PLS_CURRENT_LOAD_SELECTED, so that you load the selected track (i.e. the last added, which can be selected via PLS_CURRENT_SELECT_ENTRY.
Example:
PLS_CURRENT_APPEND_FILE ....
PLS_CURRENT_SELECT_ENTRY 99999
PLS_CURRENT_LOAD_SELECTED

Else, if you want to spontaneous play a file or URL, you might also take a look at:
- EXEC_PLAY_FILE
or
- EXEC_DIRECTPLAYER_xxx commands

Another option might be to use the MODStreamWatcher feature.
See here: http://www.proppfrexx.radio42.com/forum ... t=57&p=212
The idea is to allow a live stream to fade in to the current playlist. The the issue was finding the added file and making it go live next after the current song has finished playing to give a smooth transition, and your first example looks like it will do the job, if
I assume correctly that 99999 just means select last track if so that would do the job nicely.

Re: adding a stream to plat next in current playlist.

Posted: 13 Nov 2020 16:20
by radio42
Correct!