![](https://secure.gravatar.com/avatar/4a29363063e604994c18ef89860a068c?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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 [4]: 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?
Thanks
Stephen