-
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
Exception with ClippingMediaSource on encrypted HLS #3888
Comments
This happens when the HLS media playlists contain a @andrewlewis - I wonder whether it would be possible to relax the |
@ojw28 |
As per the
The problem is more that it's not obvious a |
ClippingMediaSource provides a timeline where the period and window have the same start/end positions, so when clipping a child timeline with a non-zero offset between the window and period it is necessary to clear the offset then apply the offset to the start/end positions used in the ClippingMediaPeriod. Also add a message to clipping exceptions. Also fix adjustment of seeks to the start of the clipped view. Issue: #3888 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187292506
@rajab57 38914f0 removes the restriction on clipping child sources that have an offset window and adds a message to clipping errors to make the error more obvious, and, in addition, in 4373e63 we've also changed HLS timelines so that the period and window both start from zero when first loading the stream. Please try this out on the development branch and let us know if there are any problems with the fixes. Thanks! |
@andrewlewis Works !! |
Our planned 2.7.1 release (https://github.com/google/ExoPlayer/tree/dev-v2-r2.7.1) should fix this issue without causing #3966, so I think that release will be fine. We'll also be fixing #3966 in the dev-v2 branch shortly. |
Issue description
Exception for a clipped HLS Video with AES-128 encryption.
When playing as a mediaSource, the video plays fine, but when clipped using ClippingMediaSource throws an exception
Reproduction steps
MediaSource mediaSource = new ClippingMediaSource(mediaSources[0], 5000000, 25000000, true); Made this change in PlayerActivity.java in the Exoplayer demo app
Version of ExoPlayer being used
2.7.0
Device(s) and version(s) of Android being used
Nexus 6P Android 8.0.0
Nexus 5 Android 6.0.1 API 23
Link to test content
sent to dev.exoplayer@gmail.com
BugReport
sent to dev.exoplayer@gmail.com
The text was updated successfully, but these errors were encountered: