mherger wrote: > > Isnt't that the problem of "status" is that it gives me only the > > currently playing song but what I need is (except when starting) the > > next song which I can only get using songinfo? > > If you tell status to return the next X tracks. From the CLI docs: > > "The "status" query returns the complete status about a given player, > including the current playlist. Set the <start> parameter to "-" to get > > the playlist data starting from the current song. " > > That said: it wouldn't work for RP, as it's treated as a single, > changing track (like online radio). But then the same applies to > songinfo: it would always return the current song metadata for the > currently playing track (which might be multiple songs). > > -- > > Michael
Understood, I will better explore the status option, I probably misundertood it when I initially did the 1st version of these bridges, a while ago. Re songinfo, I understand that with RP in flac mode, a track is more than one song. In my plugin, when a *track* (whatever is a track) is fully sent to a player, then the "end of decode" (STMd) is sent to LMS. In return, a "play new track" (strms) is send by LMS (if any). At this point, I use the CLI to query the playlist and get the "current_track_index + 1" metadata using songinfo and then I can send that to the CC/UPnP player (during initial playback I use the "current_track_index"). I do the same with Deezer: although LMS shows only once "changing" track, this way to get metadata works, it seems that the current_track_index + 1 mode works. The only issue with RP in flac mode is the duration. But, did I read your previous mail correctly that, in songinfo, even if I get a correct duration value would be returned, it will be the first *song* duration value and not the whole *track* (the multiple songs) value? It seems strange as the duration displayed on the webUI is the whole *track" LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5 ------------------------------------------------------------------------ philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=108189 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
