Paul Webster wrote: 
> Question about meta data appearing on AirPlay device (a Sony Amp in my
> case) when the source is a continuous stream ... like radio.
> 
> I see song info changing on the AirPlay device when I choose my own
> music - with each song as a separate file - but if I play a radio stream
> where I know that the original source does not have song meta data
> included but it is collected out of band and sent to the LMS player ...
> then song changes do not appear.
> I see the name of the first track.
> 
> Example to show it is FIP from Radio France when using my plugin. Song
> info changes in LMS web interface but not on the AirPlay device.
> 
> Is that expected?

Yes, I would say unfortunately and I've been hesitating a bunch of this
one. Let me explain.

- When you play your local music, every time a track is about to end,
LMS sends the request for playing the next one. It does not include
metadata, but the bridge is gathering it using CLI
- When you play a radio live stream, some stations like RP sends
metadata update using the ICY protocol every xxKBytes transmitted. LMS
gets it and displays it. The caracteristics of live radio is that they
have a remote flag set and a duration of 0. In that case, the bridge
queries LMS every 5 seconds to see if metadata update happened and it
did, it updates the AirPlay device
- Unfortunately, and I'm guilty here, with your plugin, the duration is
not 0 anymore so the metadata polling does not happen. I've tried to
guess the end of song using estimated length but it does not work very
well. I think there is a mechanism in the CLI to subscribe to changes,
but I've never used it and anyway it would force me to keep the CLI
socket open which I purposely did. 

So this is the reason why you don't see updates.

I will re-think about that over the weekend to see if I can still, in
the case of remote streams, do the subscription or find out a way to
keep polling but do a better job with estimated duration (like getting
metadata at the end of the estimated duration and if they have not
changed, keep polling for N times every 5 sec until a change is seen -
there is some difficulties here around keeping an absolute / relative
time reference)



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=105198

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to