29 Aug, 2011
Embed a vimeo video using swfobject and setting the audio to mute
Posted by: Jennifer In: Javascript|Video
Not too much to explain here – wanted to embed a vimeo video, and wanted it to autoplay, but wanted the volume set to mute to start… <div id="myvideo"></div> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> <script type="text/javascript"> function vimeo_player_loaded() { moogaloop3 = document.getElementById('myvideo'); moogaloop3.api_setVolume(0); } var flashvars = { 'clip_id': '29950141', 'server': 'vimeo.com', 'show_title': 0, 'show_byline': 0, 'show_portrait': […]