@volcengine/veplayer-plugin 2.4.0-rc.5 → 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.
@@ -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.0";
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
- var newPlugin = player.registerPlugin(backupConstruct);
5697
- newPlugin.beforePlayerInit();
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
  }