Can not play subtitles on Sony Bravia TV
kennylbj opened this issue · 0 comments
kennylbj commented
I checked the documents and added the following header when serving the video, however, the subtitles still do not display.
I set the subtitlesUrl metadata in load()
function either.
// serve videos and subtitles using nest.js
app.useStaticAssets(config.get<string>('publicPath'), {
prefix: '/public/',
// display subtitles https://gist.github.com/thibauts/5f5f8d8ce6566c8289e6
setHeaders: (res, path) => {
const ext = extname(path);
const fileId = basename(path, ext);
if (ext === '.mp4') {
res.set('transferMode.dlna.org', 'Streaming');
res.set('contentFeatures.dlna.org', 'DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000');
res.set('CaptionInfo.sec', `http://192.168.1.107:3000/public/subtitles/${fileId}.srt`);
}
},
});
Is that mean SONY TV does not support UPnP subtitles via DIDL-Lite metadata? If so, how should I suppose to display subtitles on SONY TV?
Need your guy's help.