开发者

Flex Spark VideoDisplay: rewind seek backward

开发者 https://www.devze.com 2023-03-20 05:08 出处:网络
How could i rewind video back for, let\'s say, 5 seconds? I tried player.seek(player.currentTime - 5) but this gives no effect except small pauses (like freezing while seeking - while left arrow key

How could i rewind video back for, let's say, 5 seconds?

I tried player.seek(player.currentTime - 5) but this gives no effect except small pauses (like freezing while seeking - while left arrow key is pre开发者_运维技巧ssed down).


If you are wanting it to play backwards (just as it does forwards), that is not possible that I have ever seen.

You can try looping it backwards with .seek(), but it still wont have a smooth playback experience such as going forwards.


It seems to me that OP is asking about rewinding; not playing backward. As far as I understand 'seek()' looks for the nearest keyframe prior to the requested time. That is why, rewinding by a few seconds may give you unexpected results. FTQuest

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号