![](https://secure.gravatar.com/avatar/06aacb2f1dbed200347db0a003fc6179?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
How to remove a event handler from JWPlayer instance?
I'm the using JWPlayer. After setup the player I need to add listeners to some events, to give an example I listen to events.JWPLAYER_MEDIA_TIME like so:
bc.. jwplayer('video-container').onTime(this.onTimeHandler);
After a while I need to remove this event listener, reading the documentation I couldn't find any solution, but reading the source code I see there is a removeEventListener function, although I can't find it exposed on the player api.
I've read a answer in this forum that sugests to use an external variable to keep track of some condition, although this can work it's far from being a good solution.