-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add forceSafariHLS option for FilePlayer #1560
Conversation
8b91ada
to
b68b1a0
Compare
Updated prop name to Also tidied the logic a bit to match the Nice work! |
Thanks @cookpete ! |
@cookpete Was about to integrate the changes, but I just realized that I think you reversed the logic here. The idea is to force the native HLS player on macOS Safari. Instead, you've made it force the hls.js player. |
@cookpete just following up on this message for feedback. Should I submit a new PR for my use case? |
@nabeards If you submit new PR, I think you should name the prop to @cookpete is this prop |
@nabeards Yep, you’re right. I misinterpreted
@lvnam96 I think you’re right. The question is – would removing it be considered a breaking change that requires a major version bump? I am tempted to say no for quality of life, but happy to hear opinions. |
I have a need for the Safari native HLS player to load on macOS so I've added an option to do so.
The reason for this is because hls.js loads the
<video>
element with asrc
that's ablob
. This breaks certain<canvas>
features when working with the<video>
DOM element on Safari 15.x.Question: is there a way to locally install this as an NPM module for local development? Other modules I've worked with have been able to work that way, but trying with react-player doesn't work that way.