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

pulseaudio-dlna does not discover gmrender-resurrect client #236

Open haslersn opened 3 years ago

haslersn commented 3 years ago

I run gmrender-resurrect (version 0.0.9) on a Raspberry PI. It can be discovered by PlainUPNP, BubbleUPNP and Hi-Fi Cast (Android apps). However, on my notebook (running NixOS 20.09), pulseaudio-dlna (version 0.5.2) fails to discover the client.

pulseaudio-dlna --create-device-config
06-27 15:49:06 pulseaudio_dlna.application                    INFO     Using version: 0.5.2
06-27 15:49:06 pulseaudio_dlna.application                    INFO     Binding to *:8080
06-27 15:49:06 pulseaudio_dlna.application                    INFO     Starting discovery ...
06-27 15:49:09 pulseaudio_dlna.discover                       INFO     SSDPDiscover.search()
06-27 15:49:11 pulseaudio_dlna.plugins.dlna.ssdp              INFO     SSDPListener.shutdown()
06-27 15:49:11 pulseaudio_dlna.plugins.chromecast.mdns        INFO     MDNSListener.shutdown()
06-27 15:49:11 pulseaudio_dlna.plugins.dlna.ssdp              INFO     SSDPListener.serve_forever()
06-27 15:49:11 pulseaudio_dlna.plugins.dlna.ssdp              INFO     SSDPListener.run()
06-27 15:49:11 pulseaudio_dlna.plugins.dlna                   INFO     DLNAPlugin.discover()
06-27 15:49:15 pulseaudio_dlna.plugins.chromecast.mdns        INFO     MDNSListener.run()
06-27 15:49:15 pulseaudio_dlna.holder                         INFO     Holder.search()
06-27 15:49:15 pulseaudio_dlna.application                    INFO     Discovery complete.
06-27 15:49:15 pulseaudio_dlna.application                    INFO     Found the following devices:
06-27 15:49:15 pulseaudio_dlna.application                    INFO     Your config was successfully written to "/home/haslersn/.local/share/pulseaudio-dlna/devices.json"

When running above command on the notebook, it broadcasts 5 UDP packets on port 1900. But there's no response on port 1900 from the gmrender-resurrect. Should there be?

BruceOS commented 2 years ago

worked for me Kubuntu 20.04

sudo apt install gdebi wget https://ftp.rz.uni-wuerzburg.de/debian/pool/main/p/pulseaudio-dlna/pulseaudio-dlna_0.5.3%2Bgit20200329-0.1_all.deb gdebi pulseaudio-dlna_0.5.3+git20200329-0.1_all.deb

Problem is pulseaudio-dlna 0.5.x spits error if you manually load it on the gmediarender device . Maybe some redaer of this can add the error code, before updating.

It was something line ... "not accepted.. Error" - so any error throwing while handling out upnp data. But that dows not appear in your log.

So for NixOS means you have to compile a version above 0.6.x of puseaudio-dlna.

My verison output :+1:

$ pulseaudio-dlna --version
0.6.0