Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not play subtitles on Sony Bravia TV #34

Open
kennylbj opened this issue Nov 13, 2020 · 0 comments
Open

Can not play subtitles on Sony Bravia TV #34

kennylbj opened this issue Nov 13, 2020 · 0 comments

Comments

@kennylbj
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant