Skip to content

Instantly share code, notes, and snippets.

@neo22s
neo22s / better-video.js
Last active February 24, 2024 03:43
Playlist video player for HTML5
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);