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
On Fri, Aug 30, 2019, 9:47 AM Mitch ***@***.***> wrote:
@monumehta <https://github.com/monumehta> Same problem. Did you ever this
figure this out?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#56?email_source=notifications&email_token=AILZF6C3GNT5GDU25X3TZO3QHCNNXA5CNFSM4HITI3UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5QPVAY#issuecomment-526449283>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AILZF6EDPMQM7GOW32EWHPDQHCNNXANCNFSM4HITI3UA>
.
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: