HTML5 Video pause and rewind

You can get a reference to your jquery video element upon opening it (or closing the popup) and pause it using pause(), and then set the “currentTime” property to 0 to go back to the beginning.

Here’s a reference to the documentation for currentTime.

here’s a code sample:

var mediaElement = document.getElementById("video"); 
mediaElement.pause(); 
mediaElement.currentTime = 0;

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)