@byteplus/veplayer 2.10.0-rc.1 → 2.10.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": "@byteplus/veplayer",
3
- "version": "2.10.0-rc.1",
3
+ "version": "2.10.0",
4
4
  "main": "./umd/veplayer.production.js",
5
5
  "module": "./esm/veplayer.production.js",
6
6
  "browser": "./umd/veplayer.production.js",
@@ -25279,18 +25279,19 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
25279
25279
  }
25280
25280
  }
25281
25281
  _start() {
25282
- var _a, _b, _c, _d, _e2, _f, _g, _h;
25283
- this._liveLogger = (_h = (_a = this.player.config) == null ? void 0 : _a.teaTracker) == null ? void 0 : _h.createPlayerLogger({
25284
- Tea: (_c = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _c.tea,
25282
+ var _a, _b, _c, _d, _e2;
25283
+ const { userId, deviceId, appId } = ((_a = this.player.config) == null ? void 0 : _a.teaTracker) || {};
25284
+ this._liveLogger = (_e2 = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _e2.createPlayerLogger({
25285
+ Tea: (_d = (_c = this.player.config) == null ? void 0 : _c.teaTracker) == null ? void 0 : _d.tea,
25285
25286
  player: this.player,
25286
- aid: this.config.appId || 654926,
25287
- project_key: this.config.appId,
25288
- app_name: this.config.appName || this.config.appId,
25289
- user_id: (_e2 = (_d = this.player.config) == null ? void 0 : _d.teaTracker) == null ? void 0 : _e2.userId,
25290
- device_id: (_g = (_f = this.player.config) == null ? void 0 : _f.teaTracker) == null ? void 0 : _g.deviceId,
25287
+ aid: appId,
25288
+ project_key: appId,
25289
+ app_name: this.config.appName || appId,
25290
+ user_id: userId,
25291
+ device_id: deviceId,
25291
25292
  error_report_stop: true,
25292
25293
  ext: {
25293
- veplayer_version: "2.3.1-rc.3",
25294
+ veplayer_version: "2.3.0",
25294
25295
  flv_version: "3.0.23-rc.6",
25295
25296
  hls_version: "3.0.21-rc.21",
25296
25297
  rts_version: "0.2.1-alpha.47"
@@ -32705,6 +32706,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
32705
32706
  __publicField(this, "liveLogger");
32706
32707
  __publicField(this, "_userId");
32707
32708
  __publicField(this, "_deviceId");
32709
+ __publicField(this, "_appId");
32708
32710
  }
32709
32711
  get userId() {
32710
32712
  return this._userId;
@@ -32715,10 +32717,14 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
32715
32717
  get channel() {
32716
32718
  return "sg";
32717
32719
  }
32720
+ get appId() {
32721
+ return this._appId;
32722
+ }
32718
32723
  init(logger2) {
32719
- const { userId, deviceId, enable, ...teaOptions } = logger2 ?? {};
32724
+ const { userId, deviceId, enable, appId, ...teaOptions } = logger2 ?? {};
32720
32725
  this._userId = userId || getUserId$1();
32721
32726
  this._deviceId = deviceId || getDeviceID$1();
32727
+ this._appId = appId || 654926;
32722
32728
  if (enable === false) {
32723
32729
  return;
32724
32730
  }
@@ -37732,7 +37738,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
37732
37738
  console.warn(create(ErrorCode.INVALID_LOGGER, i18n).message);
37733
37739
  }
37734
37740
  await prepare({
37735
- ...options.logger,
37741
+ logger: options.logger,
37736
37742
  appId: ((_c = options.logger) == null ? void 0 : _c.appId) || 654926,
37737
37743
  syncWaitSettings: false,
37738
37744
  strategies: {
@@ -37820,9 +37826,10 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
37820
37826
  }
37821
37827
  if (!teaTracker.tea) {
37822
37828
  teaTracker.init({
37823
- ...options.logger,
37824
37829
  userId: options.userId,
37825
- deviceId: options.deviceId
37830
+ deviceId: options.deviceId,
37831
+ appId: options.appId,
37832
+ ...options.logger
37826
37833
  });
37827
37834
  }
37828
37835
  if (!liveVeStrategy.veStrategyManager) {
@@ -37830,7 +37837,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
37830
37837
  }
37831
37838
  await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
37832
37839
  ...options,
37833
- playerVersion: "2.3.1-rc.3",
37840
+ playerVersion: "2.3.0",
37834
37841
  type: "LIVE"
37835
37842
  }));
37836
37843
  return liveVeStrategy.veStrategyManager;