hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
839 stars 204 forks source link

ipad/AudioRemote compatibility #7

Open dwery opened 11 years ago

dwery commented 11 years ago

Hello,

let me thank you for resurrecting this project. It compiled nicely on an ubuntu quantal based atom mainboard that I'm setting up.

I've tested some DLNA compatible apps and found quite a few with good interoperability:

Fusion Stream, from Smartstor Sitecom's media controller

media:connect has some issues.. it detects gmrender and shows the playing track, but it's not reliable and it seems it cant set the track.

Network Audio Remote, a product of Sony, is able to detect and control gmrender (play, pause, vol, pos info).

It probably the one with the best UI, however it works only if the track is already playing.

I think there are problems when the app tries to send the URI to gmrender, but I see no related debug output to the console nor any relevant network traffic.

When the song ends it can be restarted, but the app loses song info and position.

It must be an app thing because I can see the report being sent with tcpdump. maybe it's the missing TrackURI?

<u:GetPositionInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
<Track>0</Track>
<TrackDuration>0:03:03.144</TrackDuration>
<TrackMetaData></TrackMetaData>
<TrackURI></TrackURI>
<RelTime>0:00:05.166</RelTime>
<AbsTime>NOT_IMPLEMENTED</AbsTime>
<RelCount>2147483647</RelCount>
<AbsCount>2147483647</AbsCount>
</u:GetPositionInfoResponse>
</s:Body> </s:Envelope>
hzeller commented 11 years ago

Maybe - the TrackURI should be filled if some song is playing. I'll see if I can add some more debugging output so that it is more clear what goes in and out (I don't have any iDevice so I can't reproduce this - it seems that Network Audio Remote is only available there).

hzeller commented 11 years ago

In the meantime, I have improved Track URI support and the way the variables are synced between controller and renderer. Can you try again if the experience with a fresh git-built of gmrender-resurrect is better with the players that previously had trouble (Network Audio Remote) ? Thanks - Henner.