@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.
@@ -5601,7 +5601,7 @@
5601
5601
  }, {
5602
5602
  key: "version",
5603
5603
  get: function get() {
5604
- return "0.2.1-alpha.0";
5604
+ return "0.2.1-alpha.1";
5605
5605
  }
5606
5606
  }, {
5607
5607
  key: "beforePlayerInit",
@@ -5697,8 +5697,14 @@
5697
5697
  }
5698
5698
  player.config.url = backupURL;
5699
5699
  if (backupConstruct) {
5700
- var newPlugin = player.registerPlugin(backupConstruct);
5701
- newPlugin.beforePlayerInit();
5700
+ if (!Array.isArray(backupConstruct)) {
5701
+ backupConstruct = [backupConstruct];
5702
+ }
5703
+ backupConstruct.forEach(function(construct) {
5704
+ var _newPlugin$beforePlay;
5705
+ var newPlugin = player.registerPlugin(construct);
5706
+ (_newPlugin$beforePlay = newPlugin.beforePlayerInit) === null || _newPlugin$beforePlay === void 0 ? void 0 : _newPlugin$beforePlay.call(newPlugin);
5707
+ });
5702
5708
  } else {
5703
5709
  player.video.src = backupURL;
5704
5710
  }