html - Muting an embedded vimeo video -
on website building have vimeo video embedded. client needs maintain sound on video people find on vimeo. website sound plain annoying. need find way mute sound within code embed. have googled can't seem find legible. can see code below, have used autoplay command within link hoping similar thing mute sound.
<iframe src="http://player.vimeo.com/video/4415083? title=0&byline=0&portrait=0&color=d01e2f&autoplay=1" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
thanks
you using setvolume
api in vimeo.. player.api('setvolume', 0);
this...
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="//f.vimeocdn.com/js/froogaloop2.min.js"></script> <iframe id="vimeo_player" src="http://player.vimeo.com/video/4415083? title=0&byline=0&portrait=0&color=d01e2f&autoplay=1" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <script> var iframe = $('#vimeo_player')[0], player = $f(iframe), status = $('.status'); player.addevent('ready', function() { player.api('setvolume', 0); }); </script>
html vimeo vimeo-api mute vimeo-player
No comments:
Post a Comment