Skip to content

Instantly share code, notes, and snippets.

@ojw28
Last active September 1, 2016 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ojw28/66f4df751fcc19b2db50ae4895c30b7e to your computer and use it in GitHub Desktop.
Save ojw28/66f4df751fcc19b2db50ae4895c30b7e to your computer and use it in GitHub Desktop.
MediaSource firstSource = new ExtractorMediaSource(firstVideoUri, ...);
MediaSource secondSource = new ExtractorMediaSource(secondVideoUri, ...);
// Plays the first video, then the second video.
ConcatenatingMediaSource concatenatedSource =
new ConcatenatingMediaSource(firstSource, secondSource);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment