Skip to content
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

How to set the current time ?. The method setCurrentTime showing error "setCurrentTime is not a function" #103

Open
BibinDotFix opened this issue Oct 14, 2023 · 2 comments

Comments

@BibinDotFix
Copy link

Hi

I am using this plugin in my Vue project. I need to set the current time from the database. It is for, resuming the player from the last watched time. I tried to use the setCurrentTime. But the console says setCurrentTime is not a function. This is the methode i used
olsVimeoPlayer.value.setCurrentTime(lastWatchTime)

@stenuto
Copy link

stenuto commented May 23, 2024

Same here.. anyone know of of a solution?

@urukai
Copy link

urukai commented Jun 11, 2024

Same here. Tried the following:

// This works, the video is paused
this.$refs.player.pause().then( () => {
   // but this does not work: "setCurrentTime is not a function [...]"
    this.$refs.player.setCurrentTime( 0 );
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants