You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use an unavailable source, the browser will throw an error event. But not on the <video> tag, but on one of the <source> tags (This behavior may be different between browsers, I did not conduct a thorough study). It is important to keep track of such errors. But because the '
The only workaround I've found is to insert <source> tags into the template explicitly, and not pass src param to useMediaControls.
The text was updated successfully, but these errors were encountered:
Hmm, that's a good point. Maybe we can return something like const { onSourceError } = useMediaControls() that would fire whenever there is an error. I don't quite remember how to create functions like that but I know it is possible.
Perhaps you have another idea on how we could handle it though?
vueuse/packages/core/useMediaControls/index.ts
Lines 352 to 360 in ecd6496
If you use an unavailable source, the browser will throw an
error
event. But not on the<video>
tag, but on one of the<source>
tags (This behavior may be different between browsers, I did not conduct a thorough study). It is important to keep track of such errors. But because the 'The only workaround I've found is to insert
<source>
tags into the template explicitly, and not passsrc
param touseMediaControls
.The text was updated successfully, but these errors were encountered: