vue-youtube-embed icon indicating copy to clipboard operation
vue-youtube-embed copied to clipboard

How to loop video

Open dvakhang opened this issue 6 years ago • 3 comments

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 avatar Dec 03 '18 07:12 dvakhang

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

dvakhang avatar Dec 03 '18 07:12 dvakhang

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

jonvitale avatar May 04 '20 15:05 jonvitale

I have resolved this so:

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

methods: {
    ended() {
      this.$refs.player.player.seekTo(0)
    }
 }

nkolesnichenko avatar Dec 01 '20 15:12 nkolesnichenko