songchenwen / plexdlnaplayer

There is no built in way to cast Plex music to DLNA speakers. This project will be the bridge.
https://hub.docker.com/r/songchenwen/plexdlnaplayer
GNU General Public License v3.0
34 stars 11 forks source link

Almost working... #8

Open gregbny opened 2 years ago

gregbny commented 2 years ago

Very very interesting project. Plex becomes more and more competing as music service and this is exactly the missing link for real Plexamp usage at home. I got this almost working with docker, Plex, all properly linked and player visible within the Plex app.

Sadly as soon as I try to play a file on Plex side:

dlna xCORE USB Audio SetAVTransportURI control error AttributeError 'ClientResponse' object has no attribute 'status_code' dlna xCORE USB Audio Play control error AttributeError 'ClientResponse' object has no attribute 'status_code'

I tried various modifications hoping it was a network or docker config issue but no luck so far (is there a chance?). My DLNA device have been tested and work perfectly when I try to stream with other apps. I tried to investigate the implementation of the DLNA device itself but it really get too technical for me to suggest anything...

it's a LMS/Squeeze endpoint

<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC>
<friendlyName>xCORE USB Audio 2.0</friendlyName>
<manufacturer>Logitech</manufacturer>
<manufacturerURL>http://www.mysqueezebox.com</manufacturerURL>
<modelDescription>Logitech Media Server UPnP/DLNA Plugin</modelDescription>
<modelName>Squeezebox</modelName>
<modelNumber>1</modelNumber>
<modelURL>http://www.slimdevices.com</modelURL>
<serialNumber>5a:32:a8:b8:65:4b</serialNumber>
<UDN>uuid:751A3305-F248-1F5C-3110-7B964AD4FFEE</UDN>
<iconList>
<icon>...</icon>
<icon>...</icon>
<icon>...</icon>
<icon>...</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<SCPDURL>/plugins/UPnP/MediaRenderer/RenderingControl.xml</SCPDURL>
<controlURL>
/plugins/UPnP/MediaRenderer/RenderingControl/control?player=5a%3A32%3Aa8%3Ab8%3A65%3A4b
</controlURL>
<eventSubURL>
http://192.168.1.85:37293/plugins/UPnP/MediaRenderer/RenderingControl/eventsub?player=5a%3A32%3Aa8%3Ab8%3A65%3A4b
</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<SCPDURL>/plugins/UPnP/MediaRenderer/ConnectionManager.xml</SCPDURL>
<controlURL>
/plugins/UPnP/MediaRenderer/ConnectionManager/control?player=5a%3A32%3Aa8%3Ab8%3A65%3A4b
</controlURL>
<eventSubURL>
http://192.168.1.85:37293/plugins/UPnP/MediaRenderer/ConnectionManager/eventsub?player=5a%3A32%3Aa8%3Ab8%3A65%3A4b
</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
<serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
<SCPDURL>/plugins/UPnP/MediaRenderer/AVTransport.xml</SCPDURL>
<controlURL>
/plugins/UPnP/MediaRenderer/AVTransport/control?player=5a%3A32%3Aa8%3Ab8%3A65%3A4b
</controlURL>
<eventSubURL>
http://192.168.1.85:37293/plugins/UPnP/MediaRenderer/AVTransport/eventsub?player=5a%3A32%3Aa8%3Ab8%3A65%3A4b
</eventSubURL>
</service>
</serviceList>
<presentationURL>http://192.168.1.85:9000</presentationURL>
</device>
</root>