-
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
Safari fails to load at startTime #2267
Comments
By default, on Safari, we use native You can disable this and use normal MSE playback (the same as Chrome), set the |
@TheModMaker Thank you for your reply. I just tried as you said, with |
What I've done before is set'ing if (isSafari && startPosition) {
function setStartPosition() {
mediaElement.removeEventListener('durationchange', setStartPosition);
mediaElement.currentTime = startPosition;
}
mediaElement.addEventListener('durationchange', setStartPosition);
} If I'm not mistaken, when Shaka uses |
I created the PR #2271 to resolve it! |
These changes have been cherry-picked for v2.5.8. |
Hi,
before labeling this as a bug, I preferred to open a question issue to discuss this (maybe I'm doing something wrong?).
We are moving to using Shaka also on Safari. My situation is as follows: our player can have some cases:
On Chrome it works all fine (with Dash).
On Safari, it starts always at 0, even if we pass at
player.load()
astartTime
value N (any number).To "fix" this, we had to use a "trick", that we were using also without Shaka: MediaFragments.
I attach you what I had to do:
Where streamSourceURL is just an M3U8 / HLS Url of a non-live content, and
playbackInfo
is just some metadata we obtained from our content server. MimeType isapplication/x-mpegUrl
. We are sure thatthis.startTime
has a value.I'd like to understand if this is a known problem in Safari (for Shaka), or if I'm doing something wrong.
What I saw is that, on Safari, an HLS content starts at 0 because the duration is not available yet.
If I breakpoint "slowly" after
.load
, it works fine, probably because Safari is able to get the duration and then we "unlock the breakpoint".I'm using Shaka 2.5.6
Let me know.
Thank you!
The text was updated successfully, but these errors were encountered: