react-jw-player icon indicating copy to clipboard operation
react-jw-player copied to clipboard

Reset state when loading a new video

Open ryanwalters opened this issue 5 years ago • 0 comments

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).

ryanwalters avatar Mar 26 '19 20:03 ryanwalters