Video rewind/forward behaves erratically from 2nd loop onwards when on repeat
Description
The rewind/forward feature (enabled via Double tap to seek
and/or Seek buttons
option in the settings) is supposed to seek 10s back or ahead depending on the requested action. However, if the video is set to be played in loop (enabled via Repeat
option), the rewind/forward feature doesn't work as intended from the 2nd repeat loop onwards. Instead of rewinding/forwarding 10s, the video just restarts from beginning while the seeked time displayed in brackets on the side animation decreases/increases by 10s (sometimes even exceeding the video duration, if continuously forwarded). On continuous rewinding, instead of restarting from beginning, the video starts seeking back from the end.
Expected behavior
If the current seek position is within 10s of beginning while rewinding or within 10s of end while forwarding, then video should restart from beginning. In all other circumstances, the video should seek back/ahead by 10s while rewind/forward feature is used.
Actual behavior
After the video completes first initial loop and enters repeat mode, the rewind/forward feature causes the video to restart from beginning.
On continuous forwarding, the video keeps restarting but the seeked time displayed in brackets on the side animation keeps increasing by 10s and even exceeds the video duration.
On continuous rewinding, the video eventually starts seeking back from the end.
However, if the video is manually seeked anywhere (by dragging finger across screen or jumping to another spot on the seekbar) even once then the rewind/forward feature seems to work as expected for that particular loop.
Steps to reproduce
-
Play a video (preferably short, having <1 min duration, for faster testing and to avoid wasting time).
-
Set it to repeat by enabling the repeat mode.
-
Forward (by double taping the right edge of screen or using the relevant button below seekbar) it to see the video seek ahead by 10s, as expected.
-
Rewind (by double taping the left edge of screen or using the relevant button below seekbar) it to see the video seek back by 10s, as expected.
-
Wait for video to complete the initial loop or manually seek to the end of video to finish the initial loop quickly.
-
From this point on, do NOT manually seek anywhere.
-
Forward the video only to see it restart from the beginning. Keep forwarding continuously to observe that while the video just restarts but the seeked time displayed in brackets on the side animation keeps increasing by 10s and even exceeds the video duration at some point.
-
Rewind the video only to see it restart from the beginning. Keep rewinding continuously and eventually a time will come when the video will start seeking back from the end.
App version
3.2.0-beta-1
App mode
Smartphone