Created
September 1, 2016 15:22
-
-
Save ojw28/acfea7a151e21cfad8a0faaadb0e460b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MediaSource videoSource = new ExtractorMediaSource(videoUri, ...); | |
MediaSource subtitleSource = new SingleSampleMediaSource(subtitleUri, ...); | |
// Plays the video with the sideloaded subtitle. | |
MergingMediaSource mergedSource = new MergingMediaSource(videoSource, subtitleSource); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment