Hide YouTube player controls.
I created a player using the code below and initially I have control set to 1 and
ytplayer = new YT.Player('ytplayer', {
height: '400',
width: '100%',
playerVars: {
'autoplay': 0,
'controls': 1,
'frameborder': 0,
'modestbranding': 1,
'rel': 0,
'showinfo': 0
},
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}
});
Now I want to hide the control dynamically. so I tried the player.setOption method for that, but I couldn't do it so anyone can help me ??
+3
source to share
No one has answered this question yet
Check out similar questions: