@volcengine/veplayer-plugin 2.4.0 → 2.4.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.development.js +27 -6
- package/esm/index.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +18 -3
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +9 -3
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.flv.development.js +18 -3
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +9 -3
- package/umd/veplayer.plugin.rtm.production.js +1 -1
|
@@ -5597,7 +5597,7 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
5597
5597
|
}, {
|
|
5598
5598
|
key: "version",
|
|
5599
5599
|
get: function get() {
|
|
5600
|
-
return "0.2.1-alpha.
|
|
5600
|
+
return "0.2.1-alpha.1";
|
|
5601
5601
|
}
|
|
5602
5602
|
}, {
|
|
5603
5603
|
key: "beforePlayerInit",
|
|
@@ -5693,8 +5693,14 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
5693
5693
|
}
|
|
5694
5694
|
player.config.url = backupURL;
|
|
5695
5695
|
if (backupConstruct) {
|
|
5696
|
-
|
|
5697
|
-
|
|
5696
|
+
if (!Array.isArray(backupConstruct)) {
|
|
5697
|
+
backupConstruct = [backupConstruct];
|
|
5698
|
+
}
|
|
5699
|
+
backupConstruct.forEach(function(construct) {
|
|
5700
|
+
var _newPlugin$beforePlay;
|
|
5701
|
+
var newPlugin = player.registerPlugin(construct);
|
|
5702
|
+
(_newPlugin$beforePlay = newPlugin.beforePlayerInit) === null || _newPlugin$beforePlay === void 0 ? void 0 : _newPlugin$beforePlay.call(newPlugin);
|
|
5703
|
+
});
|
|
5698
5704
|
} else {
|
|
5699
5705
|
player.video.src = backupURL;
|
|
5700
5706
|
}
|