Cannot play Shoutcast radio stations from DS Audio app
Hi Jean-Francois,
nice to see that the project has switched to framagit :-)
I've a problem playing radio stations from the DS Audio app. The app uses radio stations from Shoutcast. The issue is, that the mime type "application/octet-stream" is not supported.
:4:libupnpp/device/device.cxx:431::UPNP_CONTROL_ACTION_REQUEST: SetAVTransportURI. Params: <?xml version="1.0"?>
<u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
<InstanceID>0</InstanceID>
<CurrentURI>http://yp.shoutcast.com/sbin/tunein-station.pls?id=1376628</CurrentURI>
<CurrentURIMetaData><DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sec="http://www.sec.co.kr/"><item id="0" parentID="@" restricted="1"><dc:title>Metal Express Radio</dc:title><dc:creator></dc:creator><res duration="0:00:00.000" size="0" bitrate="0" protocolInfo="http-get:*:application/octet-stream:DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000">http://yp.shoutcast.com/sbin/tunein-station.pls?id=1376628</res><upnp:album></upnp:album><upnp:artist></upnp:artist><upnp:originalTrackNumber>0</upnp:originalTrackNumber><upnp:genre></upnp:genre><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite></CurrentURIMetaData>
</u:SetAVTransportURI>
:4:src/avtransport.cxx:405::Set(next)AVTransportURI: next 0 uri http://yp.shoutcast.com/sbin/tunein-station.pls?id=1376628 metadata[<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sec="http://www.sec.co.kr/"><item id="0" parentID="@" restricted="1"><dc:title>Metal Express Radio</dc:title><dc:creator></dc:creator><res duration="0:00:00.000" size="0" bitrate="0" protocolInfo="http-get:*:application/octet-stream:DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000">http://yp.shoutcast.com/sbin/tunein-station.pls?id=1376628</res><upnp:album></upnp:album><upnp:artist></upnp:artist><upnp:originalTrackNumber>0</upnp:originalTrackNumber><upnp:genre></upnp:genre><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>]
:2:src/upmpd.cxx:237::checkContentFormat: unsupported:: application/octet-stream
:2:src/avtransport.cxx:414::set(Next)AVTransportURI: unsupported format: uri http://yp.shoutcast.com/sbin/tunein-station.pls?id=1376628 metadata [<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sec="http://www.sec.co.kr/"><item id="0" parentID="@" restricted="1"><dc:title>Metal Express Radio</dc:title><dc:creator></dc:creator><res duration="0:00:00.000" size="0" bitrate="0" protocolInfo="http-get:*:application/octet-stream:DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000">http://yp.shoutcast.com/sbin/tunein-station.pls?id=1376628</res><upnp:album></upnp:album><upnp:artist></upnp:artist><upnp:originalTrackNumber>0</upnp:originalTrackNumber><upnp:genre></upnp:genre><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>]
:2:libupnpp/device/device.cxx:474::UpnpDevice: Action failed: SetAVTransportURI code -101
:4:libupnpp/device/device.cxx:431::UPNP_CONTROL_ACTION_REQUEST: Play. Params: <?xml version="1.0"?>
<u:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
Using curl to fetch the headers:
curl -IL "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1376628"
HTTP/1.1 200 OK
server: nginx
date: Wed, 09 Sep 2020 13:12:31 GMT
content-type: audio/x-scpls;charset=ISO-8859-1
content-length: 124
keep-alive: timeout=600
set-cookie: JSESSIONID=97263E31BA1AF3DE3CD2BA1FBF24F528; Path=/yp/; HttpOnly
cache-control: max-age=600
Is this a bug in the DS Audio app or is there anything upmpdcli can do?