Note that there are some explanatory texts on larger screens.

plurals
  1. POc++ DMS with subtitle support on LG smart tv with platinium library
    text
    copied!<p>I'm trying to implement a simple DMS that can provide subtitle information to the DMR -LG SmartTV - using platinium library.</p> <p>I already succeeded to render video on the DMR and i already found where the DMR receive the information of the subtitle associated to the video file.</p> <p>Sample request from the DMR:</p> <pre><code> POST /upnp/services/ContentDirectory/control HTTP/1.1 HOST: 192.168.1.3:54444 CONTENT-LENGTH: 735 CONTENT-TYPE: text/xml; charset="utf-8" SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse" USER-AGENT: Linux/2.6.39.4.ps-110224-lg1152 UPnP/1.0 DLNADOC/1.50 INTEL_NMPR/2.0 LGE_DLNA_SDK/1.6.0 &lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;s:Body&gt; &lt;u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"&gt; &lt;ObjectID&gt;ea06&lt;/ObjectID&gt; &lt;BrowseFlag&gt;BrowseDirectChildren&lt;/BrowseFlag&gt; &lt;Filter&gt;@id,@parentID,@restricted,@childCount,dc:title,dc:creator,upnp:artist,upnp:class,dc:date,upnp:album,upnp:genre,res,res@size,res@duration,res@protection,res@bitrate,res@resolution,res@protocolInfo,res@nrAudioChannels,res@sampleFrequency,upnp:albumArtURI,upnp:albumArtURI@dlna:profileID, res@dlna:cleartextSize&lt;/Filter&gt; &lt;StartingIndex&gt;0&lt;/StartingIndex&gt; &lt;RequestedCount&gt;24&lt;/RequestedCount&gt; &lt;SortCriteria&gt;&lt;/SortCriteria&gt; &lt;/u:Browse&gt; &lt;/s:Body&gt; &lt;/s:Envelope&gt; </code></pre> <p>now the response from a valid DMS that support subtitle display is:</p> <pre><code>HTTP/1.1 200 OK SERVER: WINDOWS/5.1 UPnP/1.0 DLNADOC/1.50 Nero-MediaHome/4.5.20.145 CONTENT-TYPE: text/xml; charset=utf-8 EXT: DATE: Mon, 14 Jan 2013 22:12:35 GMT TRANSFER-ENCODING: chunked CONNECTION: Keep-Alive ... &lt;item id="ea13" parentID="ea06" restricted="1"&gt; &lt;dc:date&gt;2012-10-25&lt;/dc:date&gt; &lt;dc:title&gt;video.avi&lt;/dc:title&gt; &lt;upnp:album&gt;Filmes&lt;/upnp:album&gt; &lt;upnp:class&gt;object.item.videoItem.movie&lt;/upnp:class&gt; &lt;res bitrate="257570" duration="1:37:32" nrAudioChannels="6" protocolInfo="http-get:*:video/avi:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000" resolution="720x304" sampleFrequency="48000" size="1507196928"&gt;http://192.168.1.3:54444/server/80402875-CA74-4CCE-B7E0-D81CEF1913A2/D5E59F25/ea13?unknown-id&lt;/res&gt; &lt;res protocolInfo="http-get:*:text/srt:*"&gt;http://192.168.1.3:54444/server/80402875-CA74-4CCE-B7E0-D81CEF1913A2/3A2C7131/ea13?sub=video.srt&lt;/res&gt; &lt;/item&gt; </code></pre> <p>Now i'm trying to implement the same in my custom DMS, can anyone point me in the right direction or show any sample that implements subtitle info stored in res element as: srt_URL (content-type of response is text/srt)</p> <p>Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload