Skip to content
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

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

avelad
Copy link
Member

@avelad avelad commented Jan 17, 2025

Fixes #7899

@avelad avelad added type: bug Something isn't working correctly priority: P2 Smaller impact or easy workaround browser: Safari Issues affecting Safari or WebKit derivatives labels Jan 17, 2025
@avelad avelad added this to the v4.13 milestone Jan 17, 2025
externs/shaka/player.js Outdated Show resolved Hide resolved
@avelad avelad requested a review from theodab January 17, 2025 09:23
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 75.00%

@avelad avelad merged commit 5005fac into shaka-project:main Jan 17, 2025
18 checks passed
@avelad avelad deleted the infiniteLiveStreamDuration-safari branch January 17, 2025 10:08
@@ -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;

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! For reference:
#7903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: Safari Issues affecting Safari or WebKit derivatives priority: P2 Smaller impact or easy workaround type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS 17 and 18 show long negative number in fullscreen
4 participants