Last active
September 1, 2016 15:21
-
-
Save ojw28/bddd6b6b98cf0b5185728394df49dea4 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. | |
LoopingMediaSource firstSourceTwice = new LoopingMediaSource(firstSource, 2); | |
// Plays the first video twice, then the second video. | |
ConcatenatingMediaSource concatenatedSource = | |
new ConcatenatingMediaSource(firstSourceTwice, 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