Some videos have been observed where if the video player load initializes at frame 5000, earlier seeks near the beginning of the video timeout (e.g. frames 25-150). The effective workaround is to call tator_video.onDemandDownloadPrefetch(0) which reloads the play buffer at frame 0 and then covers the desired region of video.
This seems to only happen in shorter videos.
It might be worth while to "back off" from the desired position in units of 25 until the prefetch worked. Its possible other regions of other videos result in "seek deadzones" and this trick could back you out of those too. An even simpler fix may be to do Math.max(currentFrame-200,0)
Some videos have been observed where if the video player load initializes at frame 5000, earlier seeks near the beginning of the video timeout (e.g. frames 25-150). The effective workaround is to call
tator_video.onDemandDownloadPrefetch(0)
which reloads the play buffer at frame 0 and then covers the desired region of video.This seems to only happen in shorter videos.
It might be worth while to "back off" from the desired position in units of 25 until the prefetch worked. Its possible other regions of other videos result in "seek deadzones" and this trick could back you out of those too. An even simpler fix may be to do
Math.max(currentFrame-200,0)