What's the easiest way to add pause/play functionality by clicking anywhere in the video element similar to most video players?
I tried:
$('video').click(function() {
if($(this).paused){
$(this).play();
} else {
$(this).pause();
}
});
But it didn't like the $(this).pause() call. Any help is appreciated. Thanks.
DS