我正在使用明亮的海湾视频。桌面上的一切都很好,但是这个错误发生在任何移动设备上。
以下是详细信息:
setContent @ VM404 BrightcovePlayer_api.js:415
loadError @ VM404 BrightcovePlayer_api.js:633
showErrorMessage @ VM404 BrightcovePlayer_api.js:461
handleContentError @ VM404 BrightcovePlayer_api.js:430
onMediaError @ VM404 BrightcovePlayer_api.js:427
dispatchEvent @ VM404 BrightcovePlayer_api.js:9
redispatch @ VM404 BrightcovePlayer_api.js:9
dispatchEvent @ VM404 BrightcovePlayer_api.js:9
errorHandler @ VM404 BrightcovePlayer_api.js:374
g @ VM404 BrightcovePlayer_api.js:2
dispatch @ VM404 BrightcovePlayer_api.js:2
i @ VM404 BrightcovePlayer_api.js:2
Promise (async)
setContent @ VM404 BrightcovePlayer_api.js:415
loadError @ VM404 BrightcovePlayer_api.js:633
showErrorMessage @ VM404 BrightcovePlayer_api.js:461
handleContentError @ VM404 BrightcovePlayer_api.js:430
onMediaError @ VM404 BrightcovePlayer_api.js:427
dispatchEvent @ VM404 BrightcovePlayer_api.js:9
redispatch @ VM404 BrightcovePlayer_api.js:9
dispatchEvent @ VM404 BrightcovePlayer_api.js:9
errorHandler @ VM404 BrightcovePlayer_api.js:374
g @ VM404 BrightcovePlayer_api.js:2
dispatch @ VM404 BrightcovePlayer_api.js:2
i @ VM404 BrightcovePlayer_api.js:2
以下是我为视频对象创建的代码,它将创建' object'桌面上的HTMLElement,但在移动设备上是ifream。
_createPlayerObject: function() {
var $playerObject = $('<object>', {
'class': 'BrightcoveExperience'
});
var $params = $.map(this.settings, function(value, key) {
return $('<param>', {
name: key,
value: value
});
});
$params.push($('<param>', {
name: 'templateLoadHandler',
value: this._createBrightcoveCallback(function(experienceID) {
this.player = brightcove.api.getExperience(experienceID);
this.playerModule = this.player.getModule(brightcove.api.modules.APIModules.VIDEO_PLAYER);
this.experienceModule = this.player.getModule(brightcove.api.modules.APIModules.EXPERIENCE);
this.$el.trigger('playerLoaded.' + unifiedVideoInterface);
})
}));
$params.push($('<param>', {
name: 'templateReadyHandler',
value: this._createBrightcoveCallback(function() {
this.$el.trigger('playerReady.' + unifiedVideoInterface);
this.bindTriggers();
})
}));
$playerObject.append($params);
return $playerObject;
},