Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playing parts of videos when playing a sequence of videos #2082

Closed
alexshelepov opened this issue Nov 18, 2016 · 1 comment
Closed

Playing parts of videos when playing a sequence of videos #2082

alexshelepov opened this issue Nov 18, 2016 · 1 comment
Assignees

Comments

@alexshelepov
Copy link

Hi!

I've implemented code that play sequence of mp4 videos from device sdcard using ConcatenatingMediaSource. Now it plays video1, video2. If video1 duration is 10 sec and video2 duration is 12 sec then player play video1 from 0:00 to 0:10 and then video2 from 0:00 to 0:12 so "playlist" duration is 22 sec.

I want to play only parts of videos eg 6 sec from video1 (from 0:02 to 0:08) and then 2 sec from video2 (from 0:03 to 0:05) so "playlist" duration should be 8 sec.

What is the best way to implement it? Should I implement MediaSource interface? Or I can only observe progress and seek player?

  • The version of ExoPlayer being used.
    r2.0.4
@andrewlewis
Copy link
Collaborator

This enhancement is the same as #1988.

@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants