You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to achieve something similar. For now, I'm using playing event handler and having it call a function that uses the player's seekTo method.
In template: <client-only> <youtube @ready="playerReady" @playing="playerPlaying" :video-id="videoId" /> </client-only>
And under methods: playerPlaying (event) { // The player is playing a video. this.player.seekTo(100) }
This is a workaround, but it achieves the desired end result of start. When you hit play on the video, it very briefly starts at 0:00 for a split second (mostly unnoticeable) before skipping itself to the timestamp you specify.
playerVars: {
autoplay: 1,
controls: 0,
rel: 0,
start: 0,
}
changing video id and start time on mounted :
this.playerVars.start = Math.floor(data[0].skip)
this.videoId = data[0].video_id
The text was updated successfully, but these errors were encountered: