Is there an example available to show how to override the user's volume changes?
In the last few seconds of a song play, I programmatically fade-out the volume level using the Time event handler, to make repeated calls to the jwplayer().setVolume function to gradually decrease the volume level, one level change per Time event interrupt call. To prevent the user from overriding this fade-out, I use the jwplayer().on('volume') event handler to capture any unexpected changes in the volume level by comparing the event.volume to the current level set in the Time event handler, and make a call to the setVolume function to set the volume level back to the level set in the Time event handler when these values are different. However, this results in some undesirable crackling, which I expect is due to the call to setVolume in the onVolume event handler. Is there an example showing how to prevent a volume change using the onVolume event handler?
I am using JW Player 7, because I'm also using the player to show YouTube videos elsewhere in my web-app.