-
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
getCurrentPosition()
returning incorrect value which is larger than video duration
#2224
Comments
This happens for on-demand content that includes EXT-X-PROGRAM-DATE-TIME tags. The sample timestamps are (possibly correctly) grounded by program-date-time in this case, but the timeline still thinks the start of the media is at timestamp 0. Hence the huge numbers. We'll take a look. |
- If there's no program-date-time then this change is a no-op. - If there is a program-date-time this change considers the period as having started at the epoch rather than at the start of the content. The window is then set to start at the start of the content. This is a little weird, but is required so that the period sample timestamps match the start of the period. Note that this also brings the handling of on-demand in line with how the live case is handled, meaning there wont be weird changes if a live stream changes into an on-demand one. Issue: #2224 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=142442719
This is fixed on the |
Great! Thanks for a quick response. Will test it out. |
- If there's no program-date-time then this change is a no-op. - If there is a program-date-time this change considers the period as having started at the epoch rather than at the start of the content. The window is then set to start at the start of the content. This is a little weird, but is required so that the period sample timestamps match the start of the period. Note that this also brings the handling of on-demand in line with how the live case is handled, meaning there wont be weird changes if a live stream changes into an on-demand one. Issue: #2224 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=142442719
I have take the fix for it but still facing the issue . |
Hi
I'm running ExoPlayer r2.1.0 on Nexus 5x with Android 7.0
When I play this HLS video , the playback position displayed is very large as if its some elapsed time from a clock. Here's a screenshot: http://imgur.com/VReQ5ws. Because of this the seek bar position is not updated as current position is larger than video duration.
The issue is reproducible in the Exoplayer release-v2 branch demo app for above video. Just replace any HLS video link inside media.exolist.json with above video link.
Any ideas on why this happens and how we can eliminate it?
Thanks!
The text was updated successfully, but these errors were encountered: