react-jw-player
react-jw-player copied to clipboard
Reset state when loading a new video
Reset hasPlayed
and adHasPlayed
when loading a new video.
This fixes an issue where generatePrerollUrl
only gets called on the first video loaded into the player (and probably other things that rely on those pieces of state).