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.