@byteplus/veplayer-plugin 2.5.1-rc.2 → 2.5.2-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.
@@ -13318,7 +13318,7 @@ var PluginExtension$1 = /* @__PURE__ */ function() {
13318
13318
  }]);
13319
13319
  return PluginExtension2;
13320
13320
  }();
13321
- var FlvPlugin = /* @__PURE__ */ function(_BasePlugin) {
13321
+ var FlvPlugin$1 = /* @__PURE__ */ function(_BasePlugin) {
13322
13322
  _inherits$f(FlvPlugin2, _BasePlugin);
13323
13323
  var _super = _createSuper$e(FlvPlugin2);
13324
13324
  function FlvPlugin2() {
@@ -13523,7 +13523,7 @@ var FlvPlugin = /* @__PURE__ */ function(_BasePlugin) {
13523
13523
  }]);
13524
13524
  return FlvPlugin2;
13525
13525
  }(BasePlugin);
13526
- _defineProperty$h(FlvPlugin, "Flv", Flv);
13526
+ _defineProperty$h(FlvPlugin$1, "Flv", Flv);
13527
13527
  function _callSuper(t, o, e) {
13528
13528
  return o = _getPrototypeOf$c(o), _possibleConstructorReturn$c(t, _isNativeReflectConstruct$c() ? Reflect.construct(o, e || [], _getPrototypeOf$c(t).constructor) : o.apply(t, e));
13529
13529
  }
@@ -27358,6 +27358,21 @@ var Adaptive = /* @__PURE__ */ function(_BasePlugin) {
27358
27358
  }]);
27359
27359
  return Adaptive2;
27360
27360
  }(BasePlugin);
27361
+ class FlvPlugin extends FlvPlugin$1 {
27362
+ constructor() {
27363
+ super(...arguments);
27364
+ __publicField(this, "_originSwitchURL");
27365
+ }
27366
+ beforePlayerInit() {
27367
+ this._originSwitchURL = this.player.switchURL;
27368
+ const flvDestroy = this.destroy;
27369
+ this.destroy = () => {
27370
+ this.player.switchURL = this._originSwitchURL;
27371
+ flvDestroy();
27372
+ };
27373
+ super.beforePlayerInit();
27374
+ }
27375
+ }
27361
27376
  const __PLUGIN_NAME__$5 = DynamicModule.PluginFlv;
27362
27377
  var index$5 = /* @__PURE__ */ Object.freeze({
27363
27378
  __proto__: null,