首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何为BrightCove视频创建弹出窗口?

如何为BrightCove视频创建弹出窗口?
EN

Stack Overflow用户
提问于 2014-03-13 15:02:24
回答 1查看 1.4K关注 0票数 0

我有两个要求:

  1. 当在桌面设备上单击图像时,我需要弹出一个BrightCove视频。
  2. 对于移动设备或平板设备,视频应该播放到位。

我看了一下BrightCove API,没有看到任何关于弹出的东西。http://docs.brightcove.com/en/video-cloud/smart-player-api/index.html

这是我的代码:

代码语言:javascript
复制
<!-- Start of Brightcove Player -->
<div style="display:none">
</div>
<!--
By use of this code snippet, I agree to the Brightcove Publisher T and C 
found at https://accounts.brightcove.com/en/terms-and-conditions/. 
-->
<script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script>
<object id="myExperience3331790840001" class="BrightcoveExperience">
    <param name="bgcolor" value="#FFFFFF" />
    <param name="width" value="252" />
    <param name="height" value="142" />
    <param name="playerID" value="3328690588001" />
    <param name="playerKey" value="AQ~~,AAABNxejUIE~,NjBzL2O70MzT703vlLFres21zOmPd7t1" />
    <param name="isVid" value="true" />
    <param name="isUI" value="true" />
    <param name="dynamicStreaming" value="true" />
    <param name="@videoPlayer" value="3331790840001" />
</object>
<!-- 
This script tag will cause the Brightcove Players defined above it to be created as soon
as the line is read by the browser. If you wish to have the player instantiated only after
the rest of the HTML is processed and the page load is complete, remove the line.
-->
<script type="text/javascript">brightcove.createExperiences();</script>
<!-- End of Brightcove Player -->   

提前感谢

EN

回答 1

Stack Overflow用户

发布于 2014-10-22 13:52:18

不确定您是否已经弄明白了这一点,但是对于"lightbox“实现来说,有一些东西可能对您有用:

http://docs.brightcove.com/en/video-cloud/smart-player-api/samples/simple-lightbox-player.html

这可能只对播放列表有用,所以您可能需要狡猾,或者联系Brightcove支持,它们可能会更有帮助:)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22382704

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档