Hello,
I trying to play content from my Minidlna server to my Panasonic Viera 42as650 TV trough DLNA DRM component.
I enabled discovery in my configuration.yaml and can see a TV as media player, but when I try to send a command to play a movie I get error.
Service: media_player.play_media
{
“entity_id”: “media_player.42as650_series_2”,
“media_content_type”: “video”,
“media_content_id”: “http:// 10.0.1.1:8200/MediaItems/239.avi”
}
LOG:
2019-02-03 20:25:01 DEBUG (MainThread) [async_upnp_client.dlna] Set transport uri: http:// 10.0.1.1:8200/MediaItems/239.avi
2019-02-03 20:25:01 DEBUG (MainThread) [async_upnp_client.traffic] Sending request:
HEAD http:// 10.0.1.1:8200/MediaItems/239.avi
GetContentFeatures.dlna. org: 1
2019-02-03 20:25:01 DEBUG (MainThread) [async_upnp_client.traffic] Got response:
200
Connection: close
Date: Sun, 03 Feb 2019 19:25:01 GMT
Server: Ubuntu DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.2.1
EXT:
realTimeInfo.dlna .org: DLNA.ORG_TLAG=*
transferMode.dlna .org: Streaming
Content-Type: video/x-msvideo
Content-Length: 733931520
Accept-Ranges: bytes
contentFeatures.dlna .org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000
async_upnp_client: OMITTING BODY
2019-02-03 20:25:01 DEBUG (MainThread) [async_upnp_client.traffic] Sending request:
POST http://10.0.1.108:55000/dmr/control_2
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"
Host: 10.0.1.108:55000
Content-Type: text/xml; charset="utf-8"
Content-Length: 932
<?xml version="1.0"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID>
<CurrentURI>http://10.0.1.1:8200/MediaItems/239.avi</CurrentURI>
<CurrentURIMetaData><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns1="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="0" parentID="0" restricted="1"><dc:title>Home Assistant</dc:title><ns1:class>object.item.videoItem</ns1:class><res protocolInfo="http-get:*:video/x-msvideo:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000">http://10.0.1.1:8200/MediaItems/239.avi</res></item></DIDL-Lite></CurrentURIMetaData></u:SetAVTransportURI></s:Body></s:Envelope>
2019-02-03 20:25:01 DEBUG (MainThread) [async_upnp_client.traffic] Got response:
500
Content-Length: 490
Content-Type: text/xml; charset="utf-8"
EXT:
Server: Panasonic-VIErA/1, UPnP/1.0, Panasonic MIL DLNA SERVER
Connection: close
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>714</errorCode>
<errorDescription>Illegal MIME-type</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
2019-02-03 20:25:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 289, in _handle_service_platform_call
await func(entity, data)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/media_player/dlna_dmr.py", line 313, in async_play_media
media_id, title, mime_type, upnp_class)
File "/usr/local/lib/python3.6/site-packages/async_upnp_client/dlna.py", line 574, in async_set_transport_uri
CurrentURIMetaData=meta_data)
File "/usr/local/lib/python3.6/site-packages/async_upnp_client/__init__.py", line 626, in async_call
(status_code, response_body))
async_upnp_client.UpnpError: Error during async_call(), status: 500, body: <?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>714</errorCode>
<errorDescription>Illegal MIME-type</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
http:// 10.0.1.108:55000/nrc/ddd.xml
<root xmlns=“urn:schemas-upnp-org:device-1-0” xmlns:vli=“urn:schemas-panasonic-com:vli” xmlns:viera=“urn:schemas-panasonic-com:viera” xmlns:pxn=“urn:schemas-panasonic-com:pxn”>
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:panasonic-com:device:p00RemoteController:1</deviceType>
<friendlyName>42AS650_Series</friendlyName>
<manufacturer>Panasonic</manufacturer>
<modelName>Panasonic VIErA</modelName>
<modelNumber>TX-42AS650E</modelNumber>
<UDN>uuid:4D454930-0200-1000-8001-20C6EBAB8B20</UDN>
<viera:X_DMSUDN>uuid:4D454930-0000-1000-8001-20C6EBAB8B20</viera:X_DMSUDN>
<viera:X_DMRUDN>uuid:4D454930-0100-1000-8001-20C6EBAB8B20</viera:X_DMRUDN>
<viera:X_NRCUDN>uuid:4D454930-0200-1000-8001-20C6EBAB8B20</viera:X_NRCUDN>
<vli:X_MHC_DEVICE_ID>0186400117427550</vli:X_MHC_DEVICE_ID>
<viera:X_VERSION>NRC-3.00</viera:X_VERSION>
<viera:X_DEVICE_TYPE>DTV</viera:X_DEVICE_TYPE>
<viera:X_KEY_TYPE>PAL-16,PAL-6,PAL-1</viera:X_KEY_TYPE>
<viera:X_PAD_TYPE>14-2</viera:X_PAD_TYPE>
<viera:X_NRC_ID>20C6EBAB8B20</viera:X_NRC_ID>
<viera:X_NRCCAP>
VR_POWER,VR_DMR,VR_DMS,VR_VECTOR,VR_BROWSER,VR_VCTRL,VR_LAUNCH,VR_RECDMS,VR_TUNERDMS,VR_MEDIADMS,VR_LVDMS,VR_VGADMS,VR_UPDMS,VR_TUNER1,VR_WOL,VR_OWNPLAY,VR_XRC,VR_MES,VR_UPBROWSER,VR_MHC,VR_OUTSTREAM,VR_OUTEPG,VR_TVANYWHERE
</viera:X_NRCCAP>
<iconList>
<icon>
<mimetype>image/png</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/nrc/dlna_icon_48.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/nrc/dlna_icon_120.png</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/nrc/dlna_icon_48.jpg</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/nrc/dlna_icon_120.jpg</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:panasonic-com:service:p00NetworkControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:p00NetworkControl</serviceId>
<SCPDURL>/nrc/sdd_0.xml</SCPDURL>
<controlURL>/nrc/control_0</controlURL>
<eventSubURL>/nrc/event_0</eventSubURL>
</service>
</serviceList>
</device>
</root>