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

Ability to set start time for the video? #55

Closed
mattias-persson opened this issue Mar 29, 2019 · 3 comments
Closed

Ability to set start time for the video? #55

mattias-persson opened this issue Mar 29, 2019 · 3 comments

Comments

@mattias-persson
Copy link

mattias-persson commented Mar 29, 2019

Is it possible to set a start time for a video? Similar to sharing with the ?t= parameter appended to the Video ID.

@mattias-persson
Copy link
Author

Nevermind, :player-vars="{start: 5}" 🙂

@monumehta
Copy link

start time does not change when I am changing it form mounted function

mounted(){
this.playerVars.start = Math.floor(data[0].skip)
this.videoId = data[0].video_id
}

@mattias-persson
Copy link
Author

You probably need to re-render the youtube-component. Give it a :key="" and include the start time in that key, then it should re-render every time the start time changes.

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

2 participants