micnews / react-jw-player

A React Component API for JW Player
195 stars 94 forks source link

onSetupError doesn't fire for playerScript 401 #192

Open ryandagg opened 2 years ago

ryandagg commented 2 years ago

react-jw-player@npm:1.19.1

To reproduce:

<ReactJWPlayer
    playerScript='https://content.jwplatform.com/libraries/FAKE_ID.js'
    onSetupError={console.log}
    {...props}
/>

onSetupError will not fire. I would expect it to or for this library to provide some other prop handler for this situation.