-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setCurrentTime method is not working properly #100
Comments
We are experiencing the same issue in a Vue.js (2) project. This is the relevant code:
|
I am also trying to set setCurrentTime after the player is ready. |
Did anyone find a solution to this? I had it working previously but it suddenly seems to have stopped working for me:
console log is 0 |
After playing around with this today I found that the issue seems to be with preloading. If i set preload to true on the video embed then setCurrentTime seems to work fine. If I set it to false then it no longer works. Working example:
Hope that helps someone else! |
I am using Next.js and have integrated Player.js with it. This setup is causing an issue when I try to seek to a particular timestamp. Sometimes it navigates to that specific timestamp, but other times it resets the time to 0 whenever I refresh the page.
So, I tried putting the 'ready' function inside a setTimeout function. Now, it's working okay, but it's not an appropriate approach.
Maybe the issue is with the trigger of the ready function because it seems unable to perform the setCurrentTime function.
Here, is the code I am using:
The text was updated successfully, but these errors were encountered: