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.