-
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
fix: Use infiniteLiveStreamDuration equal to true in Safari 17 or above #7901
fix: Use infiniteLiveStreamDuration equal to true in Safari 17 or above #7901
Conversation
Incremental code coverage: 75.00% |
@@ -281,6 +281,11 @@ shaka.util.PlayerConfiguration = class { | |||
shaka.util.Platform.isTizen(), | |||
}; | |||
|
|||
const safariVersion = shaka.util.Platform.safariVersion(); | |||
if (safariVersion && safariVersion >= 17) { | |||
streaming.infiniteLiveStreamDuration = true; |
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.
For whatever reason, setting infiniteLiveStreamDuration to true seems to prevent goToLive from moving more than a few seconds at a time both on iOS and on my Mac, so not iOS-specific.
The seekRange().end that it tries to jump to appears to be the correct value. I can create a new issue for this if it's helpful.
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.
Yes please!
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.
Thanks! For reference:
#7903
Fixes #7899