@byteplus/veplayer 2.10.0-rc.0 → 2.10.0-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.
@@ -25246,7 +25246,7 @@ class Logger2 extends Plugin$2 {
25246
25246
  };
25247
25247
  }
25248
25248
  afterCreate() {
25249
- if (!this.player.config.teaTracker) {
25249
+ if (!this.player.config.teaTracker.tea) {
25250
25250
  return;
25251
25251
  }
25252
25252
  this.open();
@@ -32718,20 +32718,22 @@ class TeaTracker {
32718
32718
  return "sg";
32719
32719
  }
32720
32720
  init(logger2) {
32721
- this._userId = (logger2 == null ? void 0 : logger2.userId) || getUserId$1();
32722
- this._deviceId = (logger2 == null ? void 0 : logger2.deviceId) || getDeviceID$1();
32723
- if ((logger2 == null ? void 0 : logger2.enable) === false) {
32721
+ const { userId, deviceId, enable, ...teaOptions } = logger2 ?? {};
32722
+ this._userId = userId || getUserId$1();
32723
+ this._deviceId = deviceId || getDeviceID$1();
32724
+ if (enable === false) {
32724
32725
  return;
32725
32726
  }
32726
- this.tea = this._createTea();
32727
+ this.tea = this._createTea(teaOptions);
32727
32728
  }
32728
32729
  createPlayerLogger(options) {
32729
32730
  this.liveLogger = new LoggerControl(options);
32730
32731
  return this.liveLogger;
32731
32732
  }
32732
- _createTea() {
32733
+ _createTea(teaOptions) {
32733
32734
  const Tea = new Wi$1("player_track");
32734
32735
  Tea.init({
32736
+ ...teaOptions,
32735
32737
  app_id: 507365,
32736
32738
  channel: "sg"
32737
32739
  });
@@ -37820,6 +37822,7 @@ async function prepare(options) {
37820
37822
  }
37821
37823
  if (!teaTracker.tea) {
37822
37824
  teaTracker.init({
37825
+ ...options.logger,
37823
37826
  userId: options.userId,
37824
37827
  deviceId: options.deviceId
37825
37828
  });