Can we autoplay and mute ?
darkterra opened this issue · comments
Hi, a big thank for your job !!
I would like auto play a youtube vidéo, but I think it 'll become irritate after some time. So I look for a option 'playerVars' like mute or sound or volume, but I have not found anything.
Maybe I missed something?
i just took a look, and it doesn't appear that you can mute the video with player vars.
however, in your controller, you could listen for an event and mute the player once it's ready
$scope.$on('youtube.player.ready', function ($event, player) {
player.mute()
})
i haven't actually tested this code, but i believe it should work. good luck! 🌟
Great !
Thank you so mutch !
just copy pasted it & it did the job, thanks @brandly 👍 😄