vidstack / player

UI components and hooks for building video/audio players on the web. Robust, customizable, and accessible. Modern alternative to JW Player and Video.js.
https://vidstack.io
MIT License
2.09k stars 124 forks source link

No way to get Safari iOS to use HLSProvider #796

Closed iDVB closed 1 year ago

iDVB commented 1 year ago

Current Behavior:

Safari iOS use the VideoProvider even when setting preferNativeHLS=false

Expected Behavior:

I would think the default would be to use the HLSProvider even when the native is supported, and can be overridden if desired. Also would think setting preferNativeHLS=false should definitely ensure HLSProvider is used.

Steps To Reproduce:

https://codesandbox.io/p/sandbox/vidstack-ios-safari-not-using-hlsprovider-wothzd?file=%2Fpages%2Findex.js

Is this because HLS.js isn't supported in iOS? Just read that here but not believing my eyes since I feel like we have it working in other players?

nodgear commented 1 year ago

Tested the docs on iPhone XR Safari @ https://www.vidstack.io/docs/player/providers/hls HLS Seems to be working fine for me, unless the doc is using a different package version it should be fine.

iDVB commented 1 year ago

Sorry I had to update the sandbox as I edited it later by mistake. It's now working as example of issue.

mihar-22 commented 1 year ago

Ye that's right, hls.js is not supported on iOS Safari on iPhone because Media Source Extensions is not. You can see here that MediaSource is supported only on iPad.