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
832 stars 202 forks source link

upnp] upnp_set_error: #139

Open gerroon opened 6 years ago

gerroon commented 6 years ago

Hi

I am not sure if this is an issue with GMR or my client but this is what I get and the client drops the connection to the upnp renderer and starts playing the song locally sometimes in the middle of playing.

ERROR [2017-09-11 21:09:16.931803 | gstreamer] Failed to get track duration. ERROR [2017-09-11 21:12:15.473409 | upnp] upnp_set_error: Transition to PAUSE not allowed; allowed=PLAY,SEEK

Would you please tell me if this is something that can be fixed/added to GMR?

thanks

hzeller commented 6 years ago

What is your client, and what did you attempt to do ?

gerroon commented 6 years ago

Hi

I use Dsub on Android. Dsub is a client for Airsonic and it is able to cast to upnp players. This stoping casting and continuing local play seems to happen with GMR only, I do not get that with Kodi or Rygel when using Dsub for casting.

hzeller commented 4 years ago

I suspect your client is not entirely following the specification, as it was told in the protocol which transitions were allowed. The PLAY,SEEK allowed transitions are allowed when the playback is stopped. So your Dsub client seemed to have either not received the stopped transport event.

What happens in the logfile before the error ? There should be some transition to stopping somewhere.

MR-Diamond commented 4 years ago

I'm running MediaMonkey on Android 8.0 to play (send), and gmrender-resurrect-git 331.26d8f7e-1 for listening (receive) on Linux Manjaro: I also see these warning messages from gmediarender: gmediarender[3291]: ERROR [2020-01-14 01:14:30.021070 | gstreamer] Failed to get track duration. gmediarender[3291]: ERROR [2020-01-14 01:14:30.521361 | gstreamer] Failed to get track duration. gmediarender[3291]: ERROR [2020-01-14 01:14:31.021639 | gstreamer] Failed to get track duration. gmediarender[3291]: ERROR [2020-01-14 01:16:15.358296 | upnp] upnp_set_error: Transition to PAUSE not allowed; allowed=PLAY,SEEK (701)