-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
getPlayheadTimeAsDate() differs from program time (X-EXT-PROGRAM-DATE-TIME) #5939
Comments
@bbert are you interested on send a PR to fix it? Thanks! (see: https://github.com/shaka-project/shaka-player/blob/main/lib/player.js#L4417) |
@avelad I'm not aware enough of source code to try to fix it without introducing any regression. I had a look but don't understand this part of code:
|
We are reverting the fix, which caused additional issues. |
Have you read the FAQ and checked for duplicate open issues?
Yes
If the problem is related to FairPlay, have you read the tutorial?
Yes
What version of Shaka Player are you using?
4.6.2
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from
main
?Yes
Are you using the demo app or your own custom app?
demo app
If custom app, can you reproduce the issue using our demo app?
What browser and OS are you using?
Chrome/Windows
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
What are the manifest and license server URIs?
Sent by email
What configuration are you using? What is the output of
player.getConfiguration()
?Default
What did you do?
getPlayheadTimeAsDate()
API methoddocument.querySelector('video').ui.player_.getPlayheadTimeAsDate()
What did you expect to happen?
The playlist contains the
X-EXT-PROGRAM-DATE-TIME
tag, and the live content's video displays a timecode synchronized with theX-EXT-PROGRAM-DATE-TIME
tag.The
getPlayheadTimeAsDate()
should return the same time value as the one displayed on the video.What actually happened?
The
getPlayheadTimeAsDate()
returns a value that differs by a few seconds from the real time value displayed on the video, 13 seconds in the following snapshot.As a comparison, here is a snaphost of hls.js (Windows/Chrome):
And a snapshot of AVPlayer on iOS:
Maybe the problem is related to the issue #4330
The text was updated successfully, but these errors were encountered: