ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

BDN (PNG+XML) subtitles

Open sarahachem opened this issue 9 years ago • 1 comments

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?

sarahachem avatar Dec 10 '16 13:12 sarahachem

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 avatar Dec 11 '16 23:12 ojw28