Error during playing video
We are using JWPlayer in our website. When a user is playing a video and they decide to navigate away from the page playing the video to another page. A error is thrown from the player. The error is:
'Error handling "jwplayerPlayerState" event listener : TypeError: jwplayer(...).dispatchEvent is not a function'
I think the problem may be due to the fact that the user can navigate away while the video is playing, but I'm not 100% sure of this.
Why is this error thrown?