If I cast via UPnP to Yamaha the progress bar instantly stops inside the app. The media view inside the Android task view keeps progressing until the progress bar is full, but it isn’t in sync with the progress on the Yamaha player.
After the first track is completed the next track starts on the Yamaha player, but neither the view inside the Symfonium app, nor the media view in the task view is indicating that and are still showing the first track. It seems that Symfonium is not aware of what is playing on the Yamaha player.
Because of the issue played tracks are either not reported as such to Navidrome, or Navidrome can’t recognize them as finished. Therefore they are neither counted nor is a scrobble event fired.
The issue can’t be observed when I cast to Kodi instead of Yamaha. The progress is picked up correctly and also seeking is working.
Track play counting is working as well as scrobbling.
“Error/UPnPRenderer: Error getting position info” log entries for instance only appear with Yamaha
debug-20230715_170647.zip (386,3 KB)
Progress bar becomes stuck.
Yamaha does respond to pause button presses inside Symfonium, but not to anything related with seeking. Seeking might not be supported by Yamahas UPnP implementation, as I wasn’t able to get it working with other UPnP Controllers and servers either.
The issue can be reproduced with the stereo receiver R-N803D, the smart speakers WX-030 and WX-021, as well as the AV receiver RX-A2A. All of them are Yamaha Musiccast devices.
The device is broken and returns invalid XML and so does not respect UPNP
2023-07-15 16:53:45.951 T:UPnPRenderer
Error getting position info: <?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetPositionInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><Track>1</Track><TrackDuration>0:05:25</TrackDuration><TrackMetaData><DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sec="http://www.sec.co.kr/" xmlns:dc="http://purl.org/dc/elements/1.1/"><item restricted="1" id="c5673fea-c3be-4730-a081-fa6d82b84b1f" parentID="0"><upnp:album>This Is What I Mean</upnp:album><upnp:class>object.item.audioItem.musicTrack</upnp:class><upnp:artist>Stormzy</upnp:artist><res duration="00:05:25" protocolInfo="http-get:*:audio/flac:DLNA.ORG_PN=FLAC;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000">http://192.168.1.215:5011/rest/stream.view?id=add709cbaf4be767a72a154f2238522c&amp;u=REDACTED&amp;t=REDACTED&amp;s=REDACTED&amp;v=1.13.0&amp;c=Symfonium&amp;f=json</res><upnp:originalTrackNumber>2</upnp:originalTrackNumber><upnp:albumArtURI>http://192.168.1.106:39823/e9304d703ba755f78f6fd96e0742a671/%2Fstorage%2Femulated%2F0%2FAndroid%2Fdata%2Fapp.symfonik.music.player%2Fcache%2Fimages%2F6%2F6B32C1B745DAE3B594A2DD5CA60EEC26.jpg#FromSymfonium</upnp:albumArtURI><dc:title>This Is What I Mean</dc:title></item></DIDL-Lite></TrackMetaData><TrackURI>http://192.168.1.215:5011/rest/stream.view?id=add709cbaf4be767a72a154f2238522c&u=REDACTED&t=REDACTED&s=REDACTED&v=1.13.0&c=Symfonium&f=json</TrackURI><RelTime>0:00:58</RelTime><AbsTime>0:00:58</AbsTime><RelCount>58</RelCount><AbsCount>58</AbsCount></u:GetPositionInfoResponse></s:Body></s:Envelope>
TrackURI is not properly escaped and so the XML parser can’t decode what the device says.
It should be fixed by Yamaha.
I currently do not really have a workaround as the author of the library I use do not have much time even to discuss about how to implement a proper workaround.