Open tartesso26 opened 5 months ago
onReady() { console.log("ready to play"); this.$refs.youtube.playVideo(); //this.$refs.youtube.seekTo(20, true); //this.$refs.youtube.playVideoAt(1); //this.$refs.youtube.playVideo(); },
all checked comands works only playvideo is not working and playvideoat goes to indicate video but not starting
more infor, i checked statechange and it goes to -1, 3 and back to -1
i´m using vue3-youtube, i load a playlist properly but video not start playing neither using autoplay nor using playvideo i load playlist in this object const variables = ref({ controls: 0, rel: 0, playlist: "" })
i include this code <YouTube width="100%" height="100%" :mute="true" :vars="variables" @ready="onReady" ref="youtube" >
and if i click play everything works fine and playlist is played, only problem is start to play without click
any idea why is this happening?