You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2024. It is now read-only.
Forgive a possibly naive question, but I'm trying to understand what happens if both the native HLS support and hls.js are incompatible with a given browser?
Is this too rare of a case to be concerned about?
With a native video tag, you might provide multiple sources:
<video><!-- Selected if browser has native HLS support --><sourcesrc="https://example.com/some-video-playlist.m3u8"
type="application/x-mpegURL"
/><!-- Selected if browser does not have native HLS support --><sourcesrc="https://example.com/some-video.mp4"
type="video/mp4"
/>
Your browser does not support HTML5 video.
</video>
HLS-native browsers (like Safari) correctly play the m3u8, and incompatible browsers correctly play the mp4.
However the same markup with the hls-video element always seems to play the mp4, even if there's native HLS support or hls.js would have worked.
<hls-video><!-- Expected to be selected if browser has native HLS support OR hls.js works --><sourcesrc="https://example.com/some-video-playlist.m3u8"
type="application/x-mpegURL"
/><!-- In practice this is always selected --><sourcesrc="https://example.com/some-video.mp4"
type="video/mp4"
/>
Your browser does not support HTML5 video.
</hls-video>
Any advice on the correct approach to supporting this edge case is appreciated.
The text was updated successfully, but these errors were encountered:
hls-video's logic currently doesn't check the child source elements I believe so not sure what's happening in the 2nd example. I'll leave this issue open once we get around to possibly supporting child source elements.
Thanks for this component!
Forgive a possibly naive question, but I'm trying to understand what happens if both the native HLS support and hls.js are incompatible with a given browser?
Is this too rare of a case to be concerned about?
With a native video tag, you might provide multiple sources:
HLS-native browsers (like Safari) correctly play the
m3u8
, and incompatible browsers correctly play themp4
.However the same markup with the
hls-video
element always seems to play themp4
, even if there's native HLS support or hls.js would have worked.Any advice on the correct approach to supporting this edge case is appreciated.
The text was updated successfully, but these errors were encountered: