如指南所示(如下),我正在使用 Brightcove api,但我的问题是我无法以这种方式管理两个玩家,我需要它:
<object id="VideoBrightcove?c=4&m=2&s=2" class="BrightcoveExperience">
<param name="bgcolor" value="#FFFFFF" />
<param name="width" value="480" />
<param name="height" value="270" />
<param name="playerID" value="2549948545001" />
<param name="playerKey" value="AQ~~,AAABmA9XpXk~,-Kp7jNgisreVadKjzdyJfLcfukyXcGqB" />
<param name="isVid" value="true" />
<param name="isUI" value="true" />
<param name="dynamicStreaming" value="true" />
<param name="includeAPI" value="true" />
<param name="templateLoadHandler" value="BCLS.onTemplateLoad" />
<param name="templateReadyHandler" value="BCLS.onTemplateReady">
<param name="@videoPlayer" value="1754261637001" />
</object>
<script>
var BCLS = (function() {
var player,APIModules,mediaEvent,videoPlayer;
return {
onTemplateLoad : function (experienceID) {
//do something
},
onTemplateReady : function (evt) {
//do something
},
onProgress : function (evt) {
//do something
},
onBegin : function (evt) {
//do something
},
onComplete : function (evt) {
//do something
}
}
}());
</script>
有管理多个玩家的想法吗?