I have initialized my player with the code below. It mutes fine in Chrome, FireFox, and IE, but not Safari. Any thoughts amigos?
function onYouTubeIframeAPIReady() {
player = new YT.Player('iframe-wrapper', {
height: videoHeight,
width: videoWidth,
videoId: id,
events: {
'onReady': onPlayerReady
},
playerVars: {
'autoplay': 1,
'controls': 0,
'autohide': 1,
'wmode': 'opaque',
'showinfo': 0,
'loop': 1,
'mute': 1
}
});
}
function onPlayerReady() {
player.mute();
player.playVideo();
}