Open kitschpatrol opened 5 months ago
thanks for the question, it's a valid concern but like you speculated it's a very rare use case not to worry about.
hls.js works on all browsers with MSE support, the exception is iOS (iPadOS supports MSE) which supports native HLS so all cases are covered.
(the latest iOS also supports managed media source https://webkit.org/blog/14735/webkit-features-in-safari-17-1/)
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.
Thank you for the quick response. Good to know that this is the edgiest of edge cases.
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.