@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.
@@ -14560,7 +14560,7 @@ class VePlayerBase {
14560
14560
  * @brief Retrieve the player SDK version number.
14561
14561
  */
14562
14562
  get playerVersion() {
14563
- return "2.10.0-rc.1";
14563
+ return "2.10.0";
14564
14564
  }
14565
14565
  /** {zh}
14566
14566
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -55361,18 +55361,19 @@ class Logger2 extends Plugin {
55361
55361
  }
55362
55362
  }
55363
55363
  _start() {
55364
- var _a, _b, _c, _d, _e2, _f, _g, _h;
55365
- this._liveLogger = (_h = (_a = this.player.config) == null ? void 0 : _a.teaTracker) == null ? void 0 : _h.createPlayerLogger({
55366
- Tea: (_c = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _c.tea,
55364
+ var _a, _b, _c, _d, _e2;
55365
+ const { userId, deviceId, appId } = ((_a = this.player.config) == null ? void 0 : _a.teaTracker) || {};
55366
+ this._liveLogger = (_e2 = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _e2.createPlayerLogger({
55367
+ Tea: (_d = (_c = this.player.config) == null ? void 0 : _c.teaTracker) == null ? void 0 : _d.tea,
55367
55368
  player: this.player,
55368
- aid: this.config.appId || 654926,
55369
- project_key: this.config.appId,
55370
- app_name: this.config.appName || this.config.appId,
55371
- user_id: (_e2 = (_d = this.player.config) == null ? void 0 : _d.teaTracker) == null ? void 0 : _e2.userId,
55372
- device_id: (_g = (_f = this.player.config) == null ? void 0 : _f.teaTracker) == null ? void 0 : _g.deviceId,
55369
+ aid: appId,
55370
+ project_key: appId,
55371
+ app_name: this.config.appName || appId,
55372
+ user_id: userId,
55373
+ device_id: deviceId,
55373
55374
  error_report_stop: true,
55374
55375
  ext: {
55375
- veplayer_version: "2.10.0-rc.1",
55376
+ veplayer_version: "2.10.0",
55376
55377
  flv_version: "3.0.23-rc.6",
55377
55378
  hls_version: "3.0.21-rc.21",
55378
55379
  rts_version: "0.2.1-alpha.47"
@@ -62189,6 +62190,7 @@ class TeaTracker {
62189
62190
  __publicField(this, "liveLogger");
62190
62191
  __publicField(this, "_userId");
62191
62192
  __publicField(this, "_deviceId");
62193
+ __publicField(this, "_appId");
62192
62194
  }
62193
62195
  get userId() {
62194
62196
  return this._userId;
@@ -62199,10 +62201,14 @@ class TeaTracker {
62199
62201
  get channel() {
62200
62202
  return "sg";
62201
62203
  }
62204
+ get appId() {
62205
+ return this._appId;
62206
+ }
62202
62207
  init(logger2) {
62203
- const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
62208
+ const { userId, deviceId, enable: enable2, appId, ...teaOptions } = logger2 ?? {};
62204
62209
  this._userId = userId || getUserId$1();
62205
62210
  this._deviceId = deviceId || getDeviceID$1();
62211
+ this._appId = appId || 654926;
62206
62212
  if (enable2 === false) {
62207
62213
  return;
62208
62214
  }
@@ -67210,7 +67216,7 @@ async function createLivePlayer(options) {
67210
67216
  console.warn(create(ErrorCode.INVALID_LOGGER, i18n).message);
67211
67217
  }
67212
67218
  await prepare({
67213
- ...options.logger,
67219
+ logger: options.logger,
67214
67220
  appId: ((_c = options.logger) == null ? void 0 : _c.appId) || 654926,
67215
67221
  syncWaitSettings: false,
67216
67222
  strategies: {
@@ -67298,9 +67304,10 @@ async function prepare(options) {
67298
67304
  }
67299
67305
  if (!teaTracker.tea) {
67300
67306
  teaTracker.init({
67301
- ...options.logger,
67302
67307
  userId: options.userId,
67303
- deviceId: options.deviceId
67308
+ deviceId: options.deviceId,
67309
+ appId: options.appId,
67310
+ ...options.logger
67304
67311
  });
67305
67312
  }
67306
67313
  if (!liveVeStrategy.veStrategyManager) {
@@ -67308,7 +67315,7 @@ async function prepare(options) {
67308
67315
  }
67309
67316
  await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
67310
67317
  ...options,
67311
- playerVersion: "2.10.0-rc.1",
67318
+ playerVersion: "2.10.0",
67312
67319
  type: "LIVE"
67313
67320
  }));
67314
67321
  return liveVeStrategy.veStrategyManager;
@@ -14560,7 +14560,7 @@ class VePlayerBase {
14560
14560
  * @brief Retrieve the player SDK version number.
14561
14561
  */
14562
14562
  get playerVersion() {
14563
- return "2.10.0-rc.1";
14563
+ return "2.10.0";
14564
14564
  }
14565
14565
  /** {zh}
14566
14566
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -55361,18 +55361,19 @@ class Logger2 extends Plugin {
55361
55361
  }
55362
55362
  }
55363
55363
  _start() {
55364
- var _a, _b, _c, _d, _e2, _f, _g, _h;
55365
- this._liveLogger = (_h = (_a = this.player.config) == null ? void 0 : _a.teaTracker) == null ? void 0 : _h.createPlayerLogger({
55366
- Tea: (_c = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _c.tea,
55364
+ var _a, _b, _c, _d, _e2;
55365
+ const { userId, deviceId, appId } = ((_a = this.player.config) == null ? void 0 : _a.teaTracker) || {};
55366
+ this._liveLogger = (_e2 = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _e2.createPlayerLogger({
55367
+ Tea: (_d = (_c = this.player.config) == null ? void 0 : _c.teaTracker) == null ? void 0 : _d.tea,
55367
55368
  player: this.player,
55368
- aid: this.config.appId || 654926,
55369
- project_key: this.config.appId,
55370
- app_name: this.config.appName || this.config.appId,
55371
- user_id: (_e2 = (_d = this.player.config) == null ? void 0 : _d.teaTracker) == null ? void 0 : _e2.userId,
55372
- device_id: (_g = (_f = this.player.config) == null ? void 0 : _f.teaTracker) == null ? void 0 : _g.deviceId,
55369
+ aid: appId,
55370
+ project_key: appId,
55371
+ app_name: this.config.appName || appId,
55372
+ user_id: userId,
55373
+ device_id: deviceId,
55373
55374
  error_report_stop: true,
55374
55375
  ext: {
55375
- veplayer_version: "2.10.0-rc.1",
55376
+ veplayer_version: "2.10.0",
55376
55377
  flv_version: "3.0.23-rc.6",
55377
55378
  hls_version: "3.0.21-rc.21",
55378
55379
  rts_version: "0.2.1-alpha.47"
@@ -62195,6 +62196,7 @@ class TeaTracker {
62195
62196
  __publicField(this, "liveLogger");
62196
62197
  __publicField(this, "_userId");
62197
62198
  __publicField(this, "_deviceId");
62199
+ __publicField(this, "_appId");
62198
62200
  }
62199
62201
  get userId() {
62200
62202
  return this._userId;
@@ -62205,10 +62207,14 @@ class TeaTracker {
62205
62207
  get channel() {
62206
62208
  return "sg";
62207
62209
  }
62210
+ get appId() {
62211
+ return this._appId;
62212
+ }
62208
62213
  init(logger2) {
62209
- const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
62214
+ const { userId, deviceId, enable: enable2, appId, ...teaOptions } = logger2 ?? {};
62210
62215
  this._userId = userId || getUserId$1();
62211
62216
  this._deviceId = deviceId || getDeviceID$1();
62217
+ this._appId = appId || 654926;
62212
62218
  if (enable2 === false) {
62213
62219
  return;
62214
62220
  }
@@ -67216,7 +67222,7 @@ async function createLivePlayer(options) {
67216
67222
  console.warn(create(ErrorCode.INVALID_LOGGER, i18n).message);
67217
67223
  }
67218
67224
  await prepare({
67219
- ...options.logger,
67225
+ logger: options.logger,
67220
67226
  appId: ((_c = options.logger) == null ? void 0 : _c.appId) || 654926,
67221
67227
  syncWaitSettings: false,
67222
67228
  strategies: {
@@ -67304,9 +67310,10 @@ async function prepare(options) {
67304
67310
  }
67305
67311
  if (!teaTracker.tea) {
67306
67312
  teaTracker.init({
67307
- ...options.logger,
67308
67313
  userId: options.userId,
67309
- deviceId: options.deviceId
67314
+ deviceId: options.deviceId,
67315
+ appId: options.appId,
67316
+ ...options.logger
67310
67317
  });
67311
67318
  }
67312
67319
  if (!liveVeStrategy.veStrategyManager) {
@@ -67314,7 +67321,7 @@ async function prepare(options) {
67314
67321
  }
67315
67322
  await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
67316
67323
  ...options,
67317
- playerVersion: "2.10.0-rc.1",
67324
+ playerVersion: "2.10.0",
67318
67325
  type: "LIVE"
67319
67326
  }));
67320
67327
  return liveVeStrategy.veStrategyManager;