-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Support clipping of multi-period content #6234
Comments
I hope it is not an unsupported feature. |
Looping a media source with more than a single period, is indeed an unsupported feature of the
I don't think there is an easy solution for this with media source composition with a
|
I added the enhancement tag, so we can check whether we can either remove the constraint of |
@brianchu have you tried clipping first before concatenating? |
I think you can already do what you want to do. Suppose the mp4 is 10 seconds and you want to play for 56 seconds. Create a
Closing this issue on the assumption that the above works (please let us know if not). I know that @tonihei has some plans on making this more flexible, but I'm not sure we need this issue kept open for tracking (there may already be, or possibly should be, a more general issue tracking this). |
I think there is no enhancement tracking "Clipping of multi-period content" as such. We have one to track changing the clipping position during playback (#3163), but this is only helpful for this case to adapt the clipping duration of the last loop to adjust for the total duration of the previous loops (if it was unknown before playback). It would make sense to support clipping of multi-period content eventually by updating the respective period clipping positions based on the specified window clipping. Will leave the issue open to track this. Seems also helpful for multi-period DASH streams. |
Hey what is the status of this issue? Are there any plans to implement it in near future? |
There are no plans to implement this in the near future I'm afraid. |
Issue description
Want to loop a video (mp4) for certain fix period of time and if it doesn't fit perfectly, it will play and finish partially within the time limit. so thinking combine X numbers of source with concatenatingMediaSource and use ClippingMediaSource to clip the media.
other option is use LoopingMedaiSource() with ClippingMediaSource, basically
but it gives me the same error.
Reproduction steps
I use ConcatenatingMediaSource with two (same) mp4 and then wrap that with ClippingMediaSource.
Link to test content
Any mp4
A full bug report captured from the device
I can offer you the full report but I feel the stack is enough here.
Version of ExoPlayer being used
2.10.3
Device(s) and version(s) of Android being used
emulator, S9, Pixel 3.
The text was updated successfully, but these errors were encountered: