AirenSoft / OvenPlayer

OvenPlayer is JavaScript-based LLHLS and WebRTC Player for OvenMediaEngine.
https://airensoft.com/ome.html
MIT License
515 stars 126 forks source link

Error Initializing HLS but only in Chrome--and the demo site works #395

Closed krisdahl closed 1 year ago

krisdahl commented 1 year ago

I'm serving up an LLHS stream via Oven Media Engine.

I can get the llhs .m3u8 to play in Safari, but in Chrome I get a "Error Initializing HLS".

The odd thing is if I copy and paste the HLS .m3u8 URL into ovenplayer demo it loads in Chrome AND Safari--even with the same exact player initialization settings.

Any ideas why that may be happening?

SangwonOh commented 1 year ago

@krisdahl Hi. Did you import hls.js? <script src="https://cdn.jsdelivr.net/npm/hls.js@latest/dist/hls.min.js"></script> https://airensoft.gitbook.io/ovenplayer/#initialize-for-hls

zguig52 commented 1 year ago

This discussion helped me to make it work #333

krisdahl commented 1 year ago

Dang, I feel like an idiot, that was the problem. And makes sense that Safari has native HLS support.

Okay thanks guys!