您好有办法通过向iframe添加属性来使我的vimeo视频低于静音吗?如果有的话请有人告诉我怎么样?
<iframe src="http://player.vimeo.com/video/77693293?api=1;title=0&byline=0&portrait=0&color=d01e2f&autoplay=1" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
答案 0 :(得分:0)
不知道iframe解决方案
参见SWFObject + moogaloop解决方案
警告无法在桌面上运行 - 安装在Web服务器上:
有关更多SWFObject文档,请访问:code.google.com/p/swfobject/wiki/documentation
<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': '77693293',
'server': 'vimeo.com',
'show_title': 0,
'show_byline': 0,
'show_portrait': 0,
'fullscreen': 0,
'autoplay': 1,
'js_api': 1,
'js_onload': 'vimeo_player_loaded'
}
var parObj = {
'swliveconnect':true,
'fullscreen': 1,
'allowscriptaccess': 'always',
'allowfullscreen':true
};
var attObj = {}
attObj.id="myvideo";
swfobject.embedSWF("http://www.vimeo.com/moogaloop.swf", "myvideo", "500", "281", "9.0.0", '',flashvars,parObj, attObj );
</script>