@volcengine/veplayer 2.9.3-rc.0 → 2.9.3-rc.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volcengine/veplayer",
3
- "version": "2.9.3-rc.0",
3
+ "version": "2.9.3-rc.1",
4
4
  "main": "./umd/veplayer.production.js",
5
5
  "module": "./esm/veplayer.production.js",
6
6
  "browser": "./umd/veplayer.production.js",
@@ -28413,7 +28413,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
28413
28413
  };
28414
28414
  }
28415
28415
  afterCreate() {
28416
- if (!this.player.config.teaTracker.tea) {
28416
+ if (!this.player.config.teaTracker) {
28417
28417
  return;
28418
28418
  }
28419
28419
  this.open();
@@ -28456,7 +28456,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
28456
28456
  veplayer_version: "2.3.1-rc.1",
28457
28457
  flv_version: "3.0.23-rc.6",
28458
28458
  hls_version: "3.0.21-rc.21",
28459
- rts_version: "0.2.1-alpha.45"
28459
+ rts_version: "0.2.1-alpha.47"
28460
28460
  }
28461
28461
  });
28462
28462
  }
@@ -34710,18 +34710,16 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
34710
34710
  return "cn";
34711
34711
  }
34712
34712
  init(logger2) {
34713
- const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
34714
- this._userId = userId || getUserId();
34715
- this._deviceId = deviceId || getDeviceID();
34716
- if (enable2 === false) {
34713
+ this._userId = (logger2 == null ? void 0 : logger2.userId) || getUserId();
34714
+ this._deviceId = (logger2 == null ? void 0 : logger2.deviceId) || getDeviceID();
34715
+ if ((logger2 == null ? void 0 : logger2.enable) === false) {
34717
34716
  return;
34718
34717
  }
34719
- this.tea = this._createTea(teaOptions);
34718
+ this.tea = this._createTea();
34720
34719
  }
34721
- _createTea(teaOptions) {
34720
+ _createTea() {
34722
34721
  const Tea = new Wi$1("player_track");
34723
34722
  Tea.init({
34724
- ...teaOptions,
34725
34723
  app_id: 468759,
34726
34724
  channel: "cn"
34727
34725
  });
@@ -49540,7 +49538,6 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
49540
49538
  return;
49541
49539
  }
49542
49540
  teaTracker.init({
49543
- ...options.logger,
49544
49541
  userId: options.userId,
49545
49542
  deviceId: options.deviceId
49546
49543
  });