Conversation
|
Hold off on this. Apparently iOS Safari returns |
|
The latest commit is confirmed working in Chrome and Safari on their respective mobile emulators (Android 9.0, and iOS 12) and desktop. |
| ); | ||
|
|
||
| if (Hls) { | ||
| if (Hls.isSupported()) { |
There was a problem hiding this comment.
This is weird. Does hls better check for supported than native? We can check the return type of can play too
There was a problem hiding this comment.
So HLS.js just have to check if MediaSourceExtension is supported, which is an easy check on the window. I have no clue why canPlayType returns an empty string, maybe, or probably. All 3 of them sound pretty uncertain. All the demos I’ve looked at use HLS.js first and fallback to canPlayType, then unsupported.
There was a problem hiding this comment.

This fixes #2948. The issue is Chrome on Android 9.0 was returning "maybe" for
canPlayType(docs), but was unable to actually play the media. This PR checks HLS.js before "native" support, then falls back to MJPEG.