This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function( $ ) { | |
/** | |
* improving the current html5 video player | |
*/ | |
//when we pause we store the current time | |
$("video").on("pause", function(event) { | |
// Save into local storage,if you change the browser will not work | |
localStorage.setItem('bvideo-'+btoa(this.src), this.currentTime); |