How to stop video-js onclick event from pausing video
onclick, video.js
Solution
I found the answer for HTML5... but I don't get click events in the flash fallback. Updated jsfdl: http://jsfiddle.net/cvCWc/3/
window.player = videojs("movie_container", { techOrder: ["html5", "flash"] }, function() {
videojs_player = this;
videojs_player.src({ src: "http://video-js.zencoder.com/oceans-clip.mp4", type: 'video/mp4'})
videojs_player.off('click');
videojs_player.on("click", function(event){
event.preventDefault();
console.log("click", event.clientX, event.clientY, videojs_player.currentTime());
});
videojs_player.play();
});
Problem
I have a simple JSFiddle here: http://jsfiddle.net/cvCWc/2/ The basic code looks like: ``` window.player = videojs("movie_container", { techOrder: ["html5", "slash"] }, function() { videojs_player = this; videojs_player.src({ src: "http://video-js.zencoder.com/oceans-clip.mp4", type: 'video/mp4'}) videojs_player.on("click", function(event){ event.preventDefault(); alert('click'); }); videojs_player.play(); }); ``` I am trying to capture all click events on the video for future processing, but I don't want the video to pause when clicked. Any ideas?