SubtitleForAndroid icon indicating copy to clipboard operation
SubtitleForAndroid copied to clipboard

How use with ExoPlayer?

Open superstarbird opened this issue 6 years ago • 1 comments

superstarbird avatar Sep 18 '19 16:09 superstarbird

If you use ExoPlayer, then you don't need the library. You can use MergingMediaSource provided by ExoPlayer library to merge “videoMediaSource” and “subtitleSource”:

MediaSource videoMediaSource = ... MediaSource subtitleMediaSource = ... MergingMediaSource finalMediaSource = new MergingMediaSource(videoMediaSource, subtitleMediaSource)

averyzhong avatar Oct 10 '19 07:10 averyzhong