Player.js: Playing a video after setCurrentTime always plays video from beginning

Created on 4 Nov 2020  路  5Comments  路  Source: vimeo/player.js

Expected Behavior

Setting the video seconds with setCurrentTime() and playing the video after that should play the video from the previously set time

Actual Behavior

Setting the video seconds with setCurrentTime() works and sets the video to the 10th second. Clicking the 'play' button on the player after that, however, always plays the video from the beginning.

Steps to Reproduce

Here is a JSFiddle link to see that - http://jsfiddle.net/etgk7dcq/

P.S. I don't want to autoplay the video after setting the time. I want the users to be able to play the video (if they want) from where they left off.

bug

All 5 comments

Thanks for the report, I am able to replicate.

Thanks for the report, I am able to replicate.

Good to know that. Will be following. Let me know if I can assist or provide more information.

Hey @fisherinnovation, any updates on the issue?

Managed to apply a 'fix' to get this working for my case right now. I wrapped the .setCurrentTime() in a setTimeout() of 500ms.

Not the prettiest of solutions, but it gets the job done for me.

+1 to implement a fix on this one

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mattkenefick picture mattkenefick  路  3Comments

woodhall2k picture woodhall2k  路  4Comments

simpson77 picture simpson77  路  6Comments

tmaximini picture tmaximini  路  4Comments

Shigeki1120 picture Shigeki1120  路  3Comments