Next / upcoming tracks -> nowplaying

stoa

New member
Would be cool if we could include the next tracks in the nowplaying.xml (and/or via HTTP GET).
Maybe a simple option to define how many tracks should be included? (1 -> only the current track like now, 2 -> current plus next and so on...)

(I am trying to show the currently playing track + the next two tracks on a website.)
 
You can turn on the "Include next track info" option in Settings->Reports, it will include the next track name along with the currently playing track.

Currently RadioBOSS only evaluates the next track and no further. If you need to get the following tracks, and you use plain playlist playback (no Shuffle, no Track List items) then you can use the API to get the following tracks in the playlist: http://manual.djsoft.net/radioboss/en/remote_controlapi.htm (the "getplaylist2" command).
 
Ah, that's cool!

Getplaylist2 seems good for what I need, but it doesn't read tags, so it doesn't return the comment field (which I actually need to display the covers, since it holds an itemcode which is used to retrieve the cover image from a website database).

Doesn't seem like a really important request, I know - but maybe you'll find some time considering either of the following options:
- extending "include next track info" by a way to define how many 'next tracks' should be included
- adding an option to geplaylist2 to make it read tags
- adding the parameter cnt to the getplaylist action, to make it show a defined number of tracks

Oh that would be so awesome.. ;D ;)
 
stoa said:
Getplaylist2 seems good for what I need, but it doesn't read tags, so it doesn't return the comment field (which I actually need to display the covers, since it holds an itemcode which is used to retrieve the cover image from a website database).
In this case, you can use the "getplaylist" command, it reads tags and provides more information about tracks (but it is slower because of that). Or, alternatively, you can use the "readtag" command to read the tag for the files you need - this would be better compared to "getplaylist" as you only read tags for certain tracks, not for the whole playlist.

stoa said:
 - extending "include next track info" by a way to define how many 'next tracks' should be included
I don't think that would be possible due to the way RadioBOSS works. It only evaluates the following track, and not tracks after that. Evaluating the next track is not a trivial task when special playlist items like Track List, playback queue, shuffle playback mode etc are involved.
 
djsoft said:
In this case, you can use the "getplaylist" command, it reads tags and provides more information about tracks (but it is slower because of that). Or, alternatively, you can use the "readtag" command to read the tag for the files you need - this would be better compared to "getplaylist" as you only read tags for certain tracks, not for the whole playlist.

Sure - but since 'getplaylist' does not have a 'cnt' paramater, it would always return the entire playlist, which might contain multiple hours; that could be a lot, especially if I did it on every track change.

But I just discovered 'trackinfo' and think it would better suit my needs than 'readtag' - because that way I could pretty easily query pos=1, pos=2, pos=3 if needed. :)
 
stoa said:
But I just discovered 'trackinfo' and think it would better suit my needs than 'readtag' - because that way I could pretty easily query pos=1, pos=2, pos=3 if needed.
Yes, it should work.

stoa said:
Sure - but since 'getplaylist' does not have a 'cnt' paramater, it would always return the entire playlist, which might contain multiple hours; that could be a lot, especially if I did it on every track change.
I think we can add this parameter to getplaylist command as well in the next update.
 
Back
Top