I want to prevent some events of jPlayer. My business condition says that when user listen audio for 2 times then I have to stop playing audio, for this I am trying event.preventDefault()
but it's not working, code as below:
$("#jquery_jplayer_1").bind($.jPlayer.event.play, function(event) {
if(cnt==2)
{
event.preventDefault();}
});
But this code is not working, How can I prevent an event of jPlayer
.