188
rated 0 times
[
190]
[
2]
/ answers: 1 / hits: 26367
/ 9 Years ago, wed, december 30, 2015, 12:00:00
I've written a small jquery code to override HTML 5 play function. However, I am not able to check if a video is playing or not.
Here is my jquery code
$(video).click(function() {
var video = $(#myvideo).get(0);
video.play();
$(.play).css(display, none);
return false;
});
$(#myvideo).bind(pause ended, function() {
$(.play).css(display, block);
});
Just give me simple tips to show a div with class=pause
(I have CSS for it) when the video is paused and pause the video as well.
More From » jquery