我在Android/iOS上播放Brightcove視頻時遇到問題。 在桌面上工作的相同代碼在移動設備上不起作用。BrightCove視頻不能在Android/iOS設備上播放
有沒有人知道這種情況發生的原因?
裏面我是用這個鏈接上找到了測試用的代碼 - > https://gist.github.com/bcls/7535049
<!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>
<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>
歡迎來到StackOverflow!爲了幫助他人理解您的問題,請發佈代碼示例,任何日誌的輸出(例如LogCat)或其他內容以演示[最小,完整和可驗證的示例](http://stackoverflow.com/help/mcve )你的問題。 –