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
I would like to listen for any errors that occur in a videojs event handler. I have tried using player.on('error, () => {...}), but this error callback is not fired even if I throw an error manually in another player.on function. For example, if player.on('play, () => { throw new Error('error')}) I would expect an 'error' to be emitted.
Is there a way to automatically capture errors from the caller? I would like to emit any errors that occur in my player functions to be logged to sentry, and I am not finding any good examples of this in the docs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to listen for any errors that occur in a videojs event handler. I have tried using
player.on('error, () => {...})
, but this error callback is not fired even if I throw an error manually in anotherplayer.on
function. For example, ifplayer.on('play, () => { throw new Error('error')})
I would expect an'error'
to be emitted.Is there a way to automatically capture errors from the caller? I would like to emit any errors that occur in my player functions to be logged to sentry, and I am not finding any good examples of this in the docs.
Beta Was this translation helpful? Give feedback.
All reactions