Created
September 1, 2016 16:26
-
-
Save ojw28/5850ea8dec13946e427dea1ecdef5971 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 firstSource = new ExtractorMediaSource(firstVideoUri, ...); | |
MediaSource secondSource = new ExtractorMediaSource(secondVideoUri, ...); | |
// Plays the first video twice, then the second video. | |
ConcatenatingMediaSource concatenatedSource = | |
new ConcatenatingMediaSource(firstSource, firstSource, secondSource); | |
// Loops the sequence indefinitely. | |
LoopingMediaSource compositeSource = new LoopingMediaSource(concatenatedSource); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment