@byteplus/veplayer 2.10.0-rc.1 → 2.10.0-rc.2

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.
@@ -25275,15 +25275,16 @@ class Logger2 extends Plugin$2 {
25275
25275
  }
25276
25276
  }
25277
25277
  _start() {
25278
- var _a, _b, _c, _d, _e2, _f, _g, _h;
25279
- this._liveLogger = (_h = (_a = this.player.config) == null ? void 0 : _a.teaTracker) == null ? void 0 : _h.createPlayerLogger({
25280
- Tea: (_c = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _c.tea,
25278
+ var _a, _b, _c, _d, _e2;
25279
+ const { userId, deviceId, appId } = ((_a = this.player.config) == null ? void 0 : _a.teaTracker) || {};
25280
+ this._liveLogger = (_e2 = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _e2.createPlayerLogger({
25281
+ Tea: (_d = (_c = this.player.config) == null ? void 0 : _c.teaTracker) == null ? void 0 : _d.tea,
25281
25282
  player: this.player,
25282
- aid: this.config.appId || 654926,
25283
- project_key: this.config.appId,
25284
- app_name: this.config.appName || this.config.appId,
25285
- user_id: (_e2 = (_d = this.player.config) == null ? void 0 : _d.teaTracker) == null ? void 0 : _e2.userId,
25286
- device_id: (_g = (_f = this.player.config) == null ? void 0 : _f.teaTracker) == null ? void 0 : _g.deviceId,
25283
+ aid: appId,
25284
+ project_key: appId,
25285
+ app_name: this.config.appName || appId,
25286
+ user_id: userId,
25287
+ device_id: deviceId,
25287
25288
  error_report_stop: true,
25288
25289
  ext: {
25289
25290
  veplayer_version: "2.3.1-rc.3",
@@ -32707,6 +32708,7 @@ class TeaTracker {
32707
32708
  __publicField(this, "liveLogger");
32708
32709
  __publicField(this, "_userId");
32709
32710
  __publicField(this, "_deviceId");
32711
+ __publicField(this, "_appId");
32710
32712
  }
32711
32713
  get userId() {
32712
32714
  return this._userId;
@@ -32717,10 +32719,14 @@ class TeaTracker {
32717
32719
  get channel() {
32718
32720
  return "sg";
32719
32721
  }
32722
+ get appId() {
32723
+ return this._appId;
32724
+ }
32720
32725
  init(logger2) {
32721
- const { userId, deviceId, enable, ...teaOptions } = logger2 ?? {};
32726
+ const { userId, deviceId, enable, appId, ...teaOptions } = logger2 ?? {};
32722
32727
  this._userId = userId || getUserId$1();
32723
32728
  this._deviceId = deviceId || getDeviceID$1();
32729
+ this._appId = appId || 654926;
32724
32730
  if (enable === false) {
32725
32731
  return;
32726
32732
  }
@@ -37734,7 +37740,7 @@ async function createLivePlayer(options) {
37734
37740
  console.warn(create(ErrorCode.INVALID_LOGGER, i18n).message);
37735
37741
  }
37736
37742
  await prepare({
37737
- ...options.logger,
37743
+ logger: options.logger,
37738
37744
  appId: ((_c = options.logger) == null ? void 0 : _c.appId) || 654926,
37739
37745
  syncWaitSettings: false,
37740
37746
  strategies: {
@@ -37822,9 +37828,10 @@ async function prepare(options) {
37822
37828
  }
37823
37829
  if (!teaTracker.tea) {
37824
37830
  teaTracker.init({
37825
- ...options.logger,
37826
37831
  userId: options.userId,
37827
- deviceId: options.deviceId
37832
+ deviceId: options.deviceId,
37833
+ appId: options.appId,
37834
+ ...options.logger
37828
37835
  });
37829
37836
  }
37830
37837
  if (!liveVeStrategy.veStrategyManager) {