@volcengine/veplayer 2.9.2 → 2.9.3-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volcengine/veplayer",
3
- "version": "2.9.2",
3
+ "version": "2.9.3-rc.0",
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) {
28416
+ if (!this.player.config.teaTracker.tea) {
28417
28417
  return;
28418
28418
  }
28419
28419
  this.open();
@@ -28453,7 +28453,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
28453
28453
  device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
28454
28454
  error_report_stop: true,
28455
28455
  ext: {
28456
- veplayer_version: "2.3.0",
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
28459
  rts_version: "0.2.1-alpha.45"
@@ -34710,16 +34710,18 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
34710
34710
  return "cn";
34711
34711
  }
34712
34712
  init(logger2) {
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) {
34713
+ const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
34714
+ this._userId = userId || getUserId();
34715
+ this._deviceId = deviceId || getDeviceID();
34716
+ if (enable2 === false) {
34716
34717
  return;
34717
34718
  }
34718
- this.tea = this._createTea();
34719
+ this.tea = this._createTea(teaOptions);
34719
34720
  }
34720
- _createTea() {
34721
+ _createTea(teaOptions) {
34721
34722
  const Tea = new Wi$1("player_track");
34722
34723
  Tea.init({
34724
+ ...teaOptions,
34723
34725
  app_id: 468759,
34724
34726
  channel: "cn"
34725
34727
  });
@@ -49538,6 +49540,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
49538
49540
  return;
49539
49541
  }
49540
49542
  teaTracker.init({
49543
+ ...options.logger,
49541
49544
  userId: options.userId,
49542
49545
  deviceId: options.deviceId
49543
49546
  });