hls-video-element
hls-video-element copied to clipboard
How to do error handling with streams that have codec problems or broken?
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>
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