AirenSoft / OvenPlayer

OvenPlayer is JavaScript-based LLHLS and WebRTC Player for OvenMediaEngine.
https://OvenMediaEngine.com/ovenplayer
MIT License
505 stars 125 forks source link

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

Closed krisdahl closed 9 months ago

krisdahl commented 9 months 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 9 months 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 9 months ago

This discussion helped me to make it work #333

krisdahl commented 9 months ago

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

Okay thanks guys!