GNOME Bugzilla – Bug 769283
pulseaudio lists audio/L16 (non-transcoded) source twice.
Last modified: 2016-08-13 15:30:32 UTC
org.gnome.UPnP.MediaServer2.PulseAudio generates one URL linking directly to pulseaudio's http server, and another linking to rygel's, which is then proxied to pulseaudio without transcoding. pulseaudio direct link: http://127.0.0.1:4714/listen/source/alsa_output.pci-0000_00_1b.0.analog-stereo.monitor rygel proxied link: http://192.168.2.29:40621/org.gnome.UPnP.MediaServer2.PulseAudio/i/L29yZy9nbm9tZS9VUG5QL01lZGlhU2VydmVyMi9QdWxzZUF1ZGlvL1NpbmtzLzA%3D/res/primary_http.monitor For one thing, proxying is completely broken currently, due to bug #749775. For another thing, it publishes a direct link to localhost instead of the actual LAN IP address. This extra link still appears even when transcoding is disabled. I wasn't entirely sure whether it was a problem with pulseaudio or rygel, so this might need to get moved.
Actually, I couldn't find any documentation on pulseaudio's MediaServer2 interface anywhere except for passing mentions on the Rygel wiki, so I assumed pulseaudio's mediaserver2 support was implemented by rygel. If there is any documentation, I'd love to read it.
No, Pulse people (Lennart even?) implemented it according to the Spec in Rygel wiki space. The proxy might be added because the URI points to localhost, but not sure.
Created attachment 333228 [details] [review] engine-gst: Don't proxy HTTP URIs Signed-off-by: Jens Georg <mail@jensge.org>
Created attachment 333236 [details] [review] V2 of the fix with some clean-up of string compare