Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To add a SRT resource tag to UPnP item in Platinum, you should do at least the following. I don't claim the list being functional, complete or tested. It's just my best guess at what needs to be changed. If it doesn't immediately work as expected, i may not be able to help you more specifically. <em>It's a navigation hint, not a driving assistance</em>.</p> <ul> <li>put your SRT file in the same folder as the media file, named the same way in some sensible way which would be easy for you to distinguish afterwards.</li> <li>in <strong>PltMimeType.cpp</strong> add <code>"srt","text/srt"</code> to <code>PLT_HttpFileRequestHandler_DefaultFileTypeMap</code>. Platinum doesn't know SRT out of the box.</li> <li><strong>PltFileMediaServer.cpp</strong> is kinda dumb, it by default shows up all files found in a directory. It's an example, after all. You need to filter out SRTs from the visible listing by implementing <code>PltFileMediaServer::ProcessFile</code> filter.</li> <li>still in <strong>PltFileMediaServer.cpp</strong> there is a method <code>PLT_FileMediaServerDelegate::BuildFromFilePath</code>. Here comes <code>filepath</code> which is the path of your media file (and ONLY that). Out of the filepath, you need to look in the folder whether there is a properly named subtitle file (with some <code>NPT_File</code> methods, look it up).</li> <li>if there is, you must add extra <code>PLT_MediaItemResource</code> to the <code>PLT_MediaObject* object</code>. There is already one <code>resource</code> instance, but that's used exclusively for the media resource itself. Don't reuse it. You need to add another one, and IMO you need to set only <code>resource.m_Uri</code> (with BuildResourceUri) and <code>resource.m_ProtocolInfo</code>.</li> <li>for <code>m_ProtocolInfo</code>, you need to call <code>PLT_ProtocolInfo::GetProtocolInfo</code> with parameter <code>false</code> so that the <code>protocolInfo</code> of your newly added <code>&lt;res&gt;</code> is not clobbered with DLNA profile id.</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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