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

BDN (PNG+XML) subtitles #2177

Closed
sarahachem opened this issue Dec 10, 2016 · 1 comment
Closed

BDN (PNG+XML) subtitles #2177

sarahachem opened this issue Dec 10, 2016 · 1 comment
Labels

Comments

@sarahachem
Copy link

I am currently using exoplayer with an application to play DRM encrypted movies with subtitles. Some movies have SRT subtitles, which I managed to integrate successfully in the DashRendererBuilder class using the following code in the buildRenderers method:

          MediaFormat mediaFormat = MediaFormat.createTextFormat("0", MimeTypes.APPLICATION_SUBRIP, MediaFormat.NO_VALUE, C.MATCH_LONGEST_US, null);
          Uri uri = Uri.parse(getSRTURI());
          DataSource textDataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
          SingleSampleSource textSampleSource = new SingleSampleSource(uri, textDataSource, mediaFormat);
          TrackRenderer textRenderer = new TextTrackRenderer(textSampleSource, player, player.getMainHandler().getLooper());

However, other movies have BDN subtitles, which consist of PNG and XML files. Is there a way to integrate such subtitles in exoplayer?

@ojw28 ojw28 added the question label Dec 11, 2016
@ojw28
Copy link
Contributor

ojw28 commented Dec 11, 2016

We do not support bitmap subtitles. Support for them is tracked by #179 (I'm not sure whether BDN is another variant of bitmap subtitle format, but I think we can use the same issue for tracking).

@ojw28 ojw28 closed this as completed Dec 11, 2016
@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants