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

时间:2014-03-13 15:02:24

标签: javascript video brightcove

我有两个要求:

  1. 我需要在桌面设备上点击图片时弹出BrightCove视频。
  2. 对于移动设备或平板电脑设备,视频应该就位。
  3. 我查看了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 -->   
    

    提前致谢

1 个答案:

答案 0 :(得分:0)

不确定你是否已经弄清楚了这一点,但是有一些东西适用于&#34;灯箱&#34;可能对您有用的实现:

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

这可能仅对播放列表有用,因此您可能必须狡猾,或者联系Brightcove支持,他们可能会更有帮助:)。