muxinc / hls-video-element

A custom element (web component) for playing HTTP Live Streaming (HLS) videos.
https://hls-video-element-mux.vercel.app
MIT License
38 stars 18 forks source link

Test this.nativeEl for canPlayType and not video which is not defined #13

Closed Nodalailama closed 1 year ago

Nodalailama commented 3 years ago

Hi,

When I test https://github.com/muxinc/hls-video-element/blob/master/index.html on safari, it's not working. So I correct the bug.

Secondly, use a correct order for loading the media as the hls.js says (https://github.com/video-dev/hls.js/blob/master/docs/API.md#third-step-load-a-manifest): 1) attachMedia to the native video element 2) then loadSource when MEDIA_ATTACHED's event is fired

Best regards,

mskorsur commented 1 year ago

Hey, just wanted to bump this. Can we please merge the part which checks this.nativeEl for support of native HLS playback on iOS? It's still broken on all Apple devices.

luwes commented 1 year ago

this is fixed in https://github.com/muxinc/hls-video-element/releases/tag/v0.0.5