-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
m3u8 not working on Safari Desktop #1627
Comments
I think we're experiencing this same issue too - @cookpete can you confirm that this is a current bug in ReactPlayer?
I'm attempting to play a different video stream which cuts out within 0.5s of playing the video (unfortunately the video is not public). This works with Chrome and other browsers - the bug is only related to Safari on macOS, iOS and iPadOS. I've tried various options, including What does work
These points lead me to believe that this is a bug in ReactPlayer itself. |
@cookpete looking through the ReactPlayer changelog, it seems that
Maybe adding this feature as originally intended by @nabeards would actually allow for resolution of this #1627 issue as well, if you consider my point above about |
WorkaroundIn the meantime, I am going to investigate using other solutions for HLS videos, including:
|
Hm, after digging deeper, it does indeed seem to be an (intermittent) issue related to HLS.js - only the Safari native player can play the videos: Edit: this PR should fix it in |
@cookpete So maybe it's indeed best to add an option disable HLS.js for Safari on macOS / iOS / iPadOS, as @nabeards intended to do with #1560 |
@luwes this was closed as "not planned" - does this mean that it doesn't fit the goals of ReactPlayer to have an option to disable HLS.js for Safari on macOS, iOS and iPadOS? #1560 was merged but the logic was reversed before the PR merge - so the change was actually never made. |
have you tried using |
Ah, I didn't see the PR by @ablackoff in April 2023 adding this 😮 That sounds like it could work, thanks! |
I have a Next.js application in it using the ReactPlayer to play a streaming, this streaming comes with the m3u8 format. But when I run it in Safari Desktop it fires the onError event and in it shows the error "hlsError".
Environment
Other Information
When trying to play the URL in the example page, the stream plays for about a minute and then the stream is cut, I checked the console logs and found that the following error was triggered
The text was updated successfully, but these errors were encountered: