I have a vimeo embedded video but cant seem to integrate the mute on load.
Here is my video code
<div id="vimeo"> </div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="https://f.vimeocdn.com/js/froogaloop2.min.js"></script>
and the js using
<script>
// URL of the video
var videoUrl = 'http://www.vimeo.com/76979871?api=1?player_Id=vimeoyo';
var endpoint = 'http://www.vimeo.com/api/oembed.json';
var callback = 'embedVideo';
var url = endpoint + '?url=' + encodeURIComponent(videoUrl)+ '&autoplay=true' + '&callback=' + callback + '&width=420';
function embedVideo(video) {
document.getElementById('vimeo').innerHTML = unescape(video.html);
}
function init() {
var js = document.createElement('script');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', url);
document.getElementsByTagName('head').item(0).appendChild(js);
var player = 'vimeoyo';
player.api('setVolume', 0);
}
window.onload = init;
</script>
The issue im having also is that the video isn't an iframe.
Edit: There is an answer to mute using an iframe. here
Muting an embedded vimeo video
But having tested that using this fiddle, it also doesnt seem to mute the video. http://jsfiddle.net/serversides/gfcpjLsy/