html Smart Player API基本设置文档的代码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Smart Player API基本设置文档的代码相关的知识,希望对你有一定的参考价值。

<!doctype html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Smart Player API: Basic Setup</title>
</head>

<body>
  <!-- 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="myExperience922656010001" class="BrightcoveExperience">
   <param name="bgcolor" value="#FFFFFF" />
   <param name="width" value="480" />
   <param name="height" value="270" />
   <param name="playerID" value="2344262015001" />
   <param name="playerKey" value="AQ~~,AAAA1oy1bvE~,ALl2ezBj3WHB4SZjVHPI3HSdWBlOCXX4" />
   <param name="isVid" value="true" />
   <param name="isUI" value="true" />
   <param name="dynamicStreaming" value="true" />

   <param name="@videoPlayer" value="922656010001" />

   <!-- smart player api params -->
   <param name="includeAPI" value="true" />
   <param name="templateLoadHandler" value="onTemplateLoad" />
   <param name="templateReadyHandler" value="onTemplateReady" />

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

  <script type="text/JavaScript">
    var player,
    APIModules,
    videoPlayer;

    function onTemplateLoad(experienceID){
     player = brightcove.api.getExperience(experienceID);
     APIModules = brightcove.api.modules.APIModules;
    }

    function onTemplateReady(evt){
     videoPlayer = player.getModule(APIModules.VIDEO_PLAYER);
     videoPlayer.play();
    }
  </script>

</body>
</html>

以上是关于html Smart Player API基本设置文档的代码的主要内容,如果未能解决你的问题,请参考以下文章

无法将web api服务数据绑定到角度为2的ng2-smart-table

有没有办法将referer设置为youtube-iframe-api?

每次循环视频加载时,我都在努力为youtube api设置循环。我只在循环中放入了一个视频

Google Smart Lock 与凭据管理 API

javascript complaints_api_swagger_smart_docs.js

API开源免费接口管理