Skip to content

Instantly share code, notes, and snippets.

View sivamonishkumarg-cmd's full-sized avatar

sivamonishkumarg-cmd

  • Joined Sep 12, 2025
View GitHub Profile
@sivamonishkumarg-cmd
sivamonishkumarg-cmd / videojs-seeker.js
Created October 8, 2025 17:00
This JavaScript code enhances the standard Video.js player with double-tap/double-click functionality for seeking. By clicking or tapping the left and right sides of the video, users can seek backward or forward by 10-second increments (multiples of 10 for multi-clicks). A triple-click on the center will toggle play/pause. This script is useful …
/**
* VideoJS Double-Tap Seeker
*
* This script is a bookmarklet converted into a standard JavaScript file.
* It adds a custom overlay to a Video.js player that enables seeking forward or backward
* by double-tapping or double-clicking the left and right sides of the video player.
* A triple-click in the center will toggle play/pause.
*
* To use, the page must have a Video.js player with the class '.video-js'.
*