【问题标题】:How do I create a popup for a BrightCove video?如何为 BrightCove 视频创建弹出窗口?
【发布时间】:2014-04-18 10:16:38
【问题描述】:

我有两个要求:

  1. 我需要在桌面设备上单击图像时弹出 BrightCove 视频。
  2. 对于移动设备或平板电脑设备,视频应该就地播放。

我查看了 BrightCove API,并没有看到关于弹出窗口的任何内容。 http://docs.brightcove.com/en/video-cloud/smart-player-api/index.html

这是我的代码:

<!-- 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 -->   

提前致谢

【问题讨论】:

    标签: javascript video brightcove


    【解决方案1】:

    不确定您是否已经弄清楚了,但有一些“灯箱”实现可能对您有用:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-08-28
      • 2016-05-08
      • 2014-05-26
      • 1970-01-01
      • 2021-10-07
      • 2011-09-11
      相关资源
      最近更新 更多