Mobile Video Seek Gesture

On mobile, swipe left or right to seek the video, long press to speed up

作者
FlyingGorae
今日安裝
0
安裝總數
43
評價
1 0 0
版本
8.2
建立日期
2025-01-23
更新日期
2025-11-05
尺寸
7.8 KB
授權條款
MIT
腳本執行於
所有網站

Video Assistant by Gesture


You can navigate videos on your mobile browser using left and right swipe gestures (like the Video Assistant on Samsung Internet Browser).


Code made by ChatGPT




#Update

after v4.0
Added the function of long-pressing to accelerate the video.




You can adjust the sensitivity by changing the value after 'deltaX'.

timeChange = deltaX * 0.05; // 민감도 값 조정



You can adjust the accelerated speed when you long press by adjusting the numbers shown below.
You can also change the message displayed when the video is accelerated by modifying the '2x Speed' part.

ctrl.playbackRate = 2.0; // 배속 설정
showOverlay('2x Speed');




Depending on the video playback environment, some function may not work properly.
This seems to be rarely on iOS and a little bit on Android. because iOS has a simple video element.