-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: Use Date for playback start time #8415
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
Conversation
Incremental code coverage: 58.65% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If Date is used on VOD, nothing will happen.
Why limit this to live only? VOD can have PDT data as well. That said, it's less useful for VOD. Either way, not a blocker, as it could be added in later too if we wanted.
LGTM!
I updated description. There is no direct limitation for VOD, actually it relies of existence of PDT. |
Cherrypick from shaka-project#8415 This PR introduces ability to pass Date object instead of number to `shaka.Player#load()` call. Date, together with PDT is used to calculate relative start time. If stream does not have PDT, nothing will happen. Additionally, for src= playback, we set current time on `canplay` event now instead of `loadeddata`. It seems that Safari goes to live edge on it's own if we set time too soon. Co-authored-by: Wojciech Tyczyński <[email protected]>
Closes #8402
This PR introduces ability to pass Date object instead of number to
shaka.Player#load()
call. Date, together with PDT is used to calculate relative start time.If stream does not have PDT, nothing will happen.
Additionally, for src= playback, we set current time on
canplay
event now instead ofloadeddata
. It seems that Safari goes to live edge on it's own if we set time too soon.