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 loop video #54

Open
dvakhang opened this issue Dec 3, 2018 · 3 comments
Open

How to loop video #54

dvakhang opened this issue Dec 3, 2018 · 3 comments

Comments

@dvakhang
Copy link

dvakhang commented Dec 3, 2018

This is my code. And I had a trouble with loop video in youtube.
video: {
var: {
playlist: 'aiKOoXm40EE',
autoplay: 1,
loop: 1,
showinfo: 0,
mute: 1
},
id: 'aiKOoXm40EE',
width: 1920,
height: 1200

@dvakhang
Copy link
Author

dvakhang commented Dec 3, 2018

<youtube id="player" :video-id="video.id" :player-width="video.width" :player-height="video.height" :player-vars="video.var"/>

@jonvitale
Copy link

any resolution on this, I'm not getting this to work either.

@nkolesnichenko
Copy link

nkolesnichenko commented Dec 1, 2020

I have resolved this so:

<youtube :video-id="videoId" ref="player" @ended="ended"></youtube>

methods: {
    ended() {
      this.$refs.player.player.seekTo(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