嗨,我用过Brightcove视频,我的HTML页面灯箱弹出了。单击图像成功弹出Brightcove视频。我的查询是单击缩略图图像图像弹出窗口并自动播放Brightcove视频。感谢您的功能帮助。
Script:
$(".thumb3").on('click',function()
{
var $p3 = $("#videos3");
$(".thumb3").colorbox({
inline: true,
width: "45%",
href: $p3
});
});
code:
<div class="leader_videos">
<a class='thumb3' href="javascript:void(0)"><img src="images/video-3.jpg"></a>
<div class="videos">
<div id="videos3">
<object id="myExperience3884695242001" class="BrightcoveExperience" autoStart="true">
<param name="bgcolor" value="#FFFFFF" />
<param name="width" value="100%" />
<param name="height" value="350" />
<param name="playerID" value="645226206001" />
<param name="playerKey" value="AQ~~,AAAAlj15pkk~,3Csx1C7ZFcLlAwiBFL1XG62fIVDuXW7R" />
<param name="autoplay" value="false" />
<param name="autostart" value="0" />
<param name="isVid" value="true" />
<param name="isUI" value="true" />
<param name="dynamicStreaming" value="true" />
<param name="@videoPlayer" value="3884695242001" />
</object>
</div>
</div>
</div>
最佳答案
更改:
<param name="autoplay" value="false" id="autoplay-lightbox"/>
在您的JQuery代码中(我不知道它是否有效):
$("#autoplay-lightbox").attr( "value", "true" );
关于javascript - 如何设置自动启动Brightcove视频?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27248378/