On mobile, swipe left or right to seek the video, long press to speed up
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.