adding a stream to plat next in current playlist.

You have a question or need an advice about how to do something? Ask it here!
Post Reply
phonic
Posts: 327
Joined: 06 Mar 2019 14:45
adding a stream to plat next in current playlist.

Post 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!
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: adding a stream to plat next in current playlist.

Post 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
phonic
Posts: 327
Joined: 06 Mar 2019 14:45
Re: adding a stream to plat next in current playlist.

Post 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.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: adding a stream to plat next in current playlist.

Post by radio42 »

Correct!

Post Reply