Samsung J doesn't show subtitles
Issue #885
resolved
http://forum.serviio.org/viewtopic.php?p=105009#p105009
UMS working profile: http://www.universalmediaserver.com/forum/viewtopic.php?f=5&t=4075&sid=a72238104ec206d714f1d187666ab092
An example of UMS browse response:
<?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>
<u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
<Result><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/"><item id="46" parentID="40" restricted="true"><dc:title>Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv {StreamTitulky:SubRip/Czech}</dc:title><res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:video/x-matroska:DLNA.ORG_OP=01" size="9351845301" duration="02:25:15.00" resolution="1280x534" bitrate="1073034" nrAudioChannels="6" sampleFrequency="48000">http://192.168.111.212:5001/get/46/Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</res><sec:CaptionInfoEx sec:type="srt">http://192.168.111.212:5001/get/46/subtitle0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.srt</sec:CaptionInfoEx><res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN">http://192.168.111.212:5001/get/46/thumbnail0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</res><res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM">http://192.168.111.212:5001/get/46/thumbnail0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</res><dc:date>2013-09-07T10:06:10</dc:date><upnp:class>object.item.videoItem</upnp:class></item></DIDL-Lite></Result>
<NumberReturned>1</NumberReturned>
<TotalMatches>1</TotalMatches>
<UpdateID>2</UpdateID>
</u:BrowseResponse>
</s:Body>
</s:Envelope>
which includes
<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/">
<item id="46" parentID="40" restricted="true">
<dc:title>Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv {StreamTitulky:SubRip/Czech}</dc:title>
<res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:video/x-matroska:DLNA.ORG_OP=01" size="9351845301" duration="02:25:15.00" resolution="1280x534" bitrate="1073034" nrAudioChannels="6" sampleFrequency="48000">http://192.168.111.212:5001/get/46/Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</res>
<sec:CaptionInfoEx sec:type="srt">http://192.168.111.212:5001/get/46/subtitle0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.srt</sec:CaptionInfoEx>
<res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN">http://192.168.111.212:5001/get/46/thumbnail0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</res>
<res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM">http://192.168.111.212:5001/get/46/thumbnail0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.mkv</res>
<dc:date>2013-09-07T10:06:10</dc:date>
<upnp:class>object.item.videoItem</upnp:class>
</item>
</DIDL-Lite>
and then just GET for the subs:
GET /get/46/subtitle0000Minority.Report.2002.Bluray.720p.DTS.x264-CHD.srt HTTP/1.1
Accept: */*
Accept-Language: en-us
Connection: close
Host: 192.168.111.212
User-Agent: DLNA-Host
Looks like no headers are involved.
Comments (5)
-
reporter -
reporter - edited description
-
reporter One difference is UMS doesn't have the smi/caption resource
<res protocolInfo="http-get:*:smi/caption:*">http://192.168.111.212:8895/resource/165/SUBTITLE.srt</res>
-
reporter Implemented a experimental message biulder. need to add this to a profile:
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungJDLNAMessageBuilder</ContentDirectoryMessageBuilder>
-
reporter - changed status to resolved
- Log in to comment
Serviio response for the same file:
which includes