hls-video-element icon indicating copy to clipboard operation
hls-video-element copied to clipboard

How to do error handling with streams that have codec problems or broken?

Open jffluis opened this issue 1 year ago • 1 comments

just want to catch error and just just a js alert is enough. Can u help?

How can i get a js object to get and error by Hls.js? I'm using vanilla js.

<hls-video
src="myurl"
slot="media"
autoplay
controls
playsinline>
</hls-video>

jffluis avatar Dec 03 '23 17:12 jffluis

listen for the error event and check the .error property similar to the native video element. https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/error_event https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/error

luwes avatar Jan 12 '24 01:01 luwes