@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/esm/veplayer.biz.live.development.js +21 -14
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.development.js +22 -15
- package/esm/veplayer.live.development.js +22 -15
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.js +2 -2
- package/esm/veplayer.vod.development.js +1 -1
- package/esm/veplayer.vod.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.biz.live.development.js +21 -14
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.development.js +22 -15
- package/umd/veplayer.live.development.js +22 -15
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.development.js +1 -1
- package/umd/veplayer.vod.production.js +1 -1
|
@@ -14564,7 +14564,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14564
14564
|
* @brief Retrieve the player SDK version number.
|
|
14565
14565
|
*/
|
|
14566
14566
|
get playerVersion() {
|
|
14567
|
-
return "2.10.0
|
|
14567
|
+
return "2.10.0";
|
|
14568
14568
|
}
|
|
14569
14569
|
/** {zh}
|
|
14570
14570
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -55365,18 +55365,19 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
55365
55365
|
}
|
|
55366
55366
|
}
|
|
55367
55367
|
_start() {
|
|
55368
|
-
var _a, _b, _c, _d, _e2
|
|
55369
|
-
|
|
55370
|
-
|
|
55368
|
+
var _a, _b, _c, _d, _e2;
|
|
55369
|
+
const { userId, deviceId, appId } = ((_a = this.player.config) == null ? void 0 : _a.teaTracker) || {};
|
|
55370
|
+
this._liveLogger = (_e2 = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _e2.createPlayerLogger({
|
|
55371
|
+
Tea: (_d = (_c = this.player.config) == null ? void 0 : _c.teaTracker) == null ? void 0 : _d.tea,
|
|
55371
55372
|
player: this.player,
|
|
55372
|
-
aid:
|
|
55373
|
-
project_key:
|
|
55374
|
-
app_name: this.config.appName ||
|
|
55375
|
-
user_id:
|
|
55376
|
-
device_id:
|
|
55373
|
+
aid: appId,
|
|
55374
|
+
project_key: appId,
|
|
55375
|
+
app_name: this.config.appName || appId,
|
|
55376
|
+
user_id: userId,
|
|
55377
|
+
device_id: deviceId,
|
|
55377
55378
|
error_report_stop: true,
|
|
55378
55379
|
ext: {
|
|
55379
|
-
veplayer_version: "2.10.0
|
|
55380
|
+
veplayer_version: "2.10.0",
|
|
55380
55381
|
flv_version: "3.0.23-rc.6",
|
|
55381
55382
|
hls_version: "3.0.21-rc.21",
|
|
55382
55383
|
rts_version: "0.2.1-alpha.47"
|
|
@@ -62193,6 +62194,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62193
62194
|
__publicField(this, "liveLogger");
|
|
62194
62195
|
__publicField(this, "_userId");
|
|
62195
62196
|
__publicField(this, "_deviceId");
|
|
62197
|
+
__publicField(this, "_appId");
|
|
62196
62198
|
}
|
|
62197
62199
|
get userId() {
|
|
62198
62200
|
return this._userId;
|
|
@@ -62203,10 +62205,14 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62203
62205
|
get channel() {
|
|
62204
62206
|
return "sg";
|
|
62205
62207
|
}
|
|
62208
|
+
get appId() {
|
|
62209
|
+
return this._appId;
|
|
62210
|
+
}
|
|
62206
62211
|
init(logger2) {
|
|
62207
|
-
const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
|
|
62212
|
+
const { userId, deviceId, enable: enable2, appId, ...teaOptions } = logger2 ?? {};
|
|
62208
62213
|
this._userId = userId || getUserId$1();
|
|
62209
62214
|
this._deviceId = deviceId || getDeviceID$1();
|
|
62215
|
+
this._appId = appId || 654926;
|
|
62210
62216
|
if (enable2 === false) {
|
|
62211
62217
|
return;
|
|
62212
62218
|
}
|
|
@@ -67214,7 +67220,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67214
67220
|
console.warn(create(ErrorCode.INVALID_LOGGER, i18n).message);
|
|
67215
67221
|
}
|
|
67216
67222
|
await prepare({
|
|
67217
|
-
|
|
67223
|
+
logger: options.logger,
|
|
67218
67224
|
appId: ((_c = options.logger) == null ? void 0 : _c.appId) || 654926,
|
|
67219
67225
|
syncWaitSettings: false,
|
|
67220
67226
|
strategies: {
|
|
@@ -67302,9 +67308,10 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67302
67308
|
}
|
|
67303
67309
|
if (!teaTracker.tea) {
|
|
67304
67310
|
teaTracker.init({
|
|
67305
|
-
...options.logger,
|
|
67306
67311
|
userId: options.userId,
|
|
67307
|
-
deviceId: options.deviceId
|
|
67312
|
+
deviceId: options.deviceId,
|
|
67313
|
+
appId: options.appId,
|
|
67314
|
+
...options.logger
|
|
67308
67315
|
});
|
|
67309
67316
|
}
|
|
67310
67317
|
if (!liveVeStrategy.veStrategyManager) {
|
|
@@ -67312,7 +67319,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67312
67319
|
}
|
|
67313
67320
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
67314
67321
|
...options,
|
|
67315
|
-
playerVersion: "2.10.0
|
|
67322
|
+
playerVersion: "2.10.0",
|
|
67316
67323
|
type: "LIVE"
|
|
67317
67324
|
}));
|
|
67318
67325
|
return liveVeStrategy.veStrategyManager;
|
|
@@ -14564,7 +14564,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14564
14564
|
* @brief Retrieve the player SDK version number.
|
|
14565
14565
|
*/
|
|
14566
14566
|
get playerVersion() {
|
|
14567
|
-
return "2.10.0
|
|
14567
|
+
return "2.10.0";
|
|
14568
14568
|
}
|
|
14569
14569
|
/** {zh}
|
|
14570
14570
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -55365,18 +55365,19 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
55365
55365
|
}
|
|
55366
55366
|
}
|
|
55367
55367
|
_start() {
|
|
55368
|
-
var _a, _b, _c, _d, _e2
|
|
55369
|
-
|
|
55370
|
-
|
|
55368
|
+
var _a, _b, _c, _d, _e2;
|
|
55369
|
+
const { userId, deviceId, appId } = ((_a = this.player.config) == null ? void 0 : _a.teaTracker) || {};
|
|
55370
|
+
this._liveLogger = (_e2 = (_b = this.player.config) == null ? void 0 : _b.teaTracker) == null ? void 0 : _e2.createPlayerLogger({
|
|
55371
|
+
Tea: (_d = (_c = this.player.config) == null ? void 0 : _c.teaTracker) == null ? void 0 : _d.tea,
|
|
55371
55372
|
player: this.player,
|
|
55372
|
-
aid:
|
|
55373
|
-
project_key:
|
|
55374
|
-
app_name: this.config.appName ||
|
|
55375
|
-
user_id:
|
|
55376
|
-
device_id:
|
|
55373
|
+
aid: appId,
|
|
55374
|
+
project_key: appId,
|
|
55375
|
+
app_name: this.config.appName || appId,
|
|
55376
|
+
user_id: userId,
|
|
55377
|
+
device_id: deviceId,
|
|
55377
55378
|
error_report_stop: true,
|
|
55378
55379
|
ext: {
|
|
55379
|
-
veplayer_version: "2.10.0
|
|
55380
|
+
veplayer_version: "2.10.0",
|
|
55380
55381
|
flv_version: "3.0.23-rc.6",
|
|
55381
55382
|
hls_version: "3.0.21-rc.21",
|
|
55382
55383
|
rts_version: "0.2.1-alpha.47"
|
|
@@ -62193,6 +62194,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62193
62194
|
__publicField(this, "liveLogger");
|
|
62194
62195
|
__publicField(this, "_userId");
|
|
62195
62196
|
__publicField(this, "_deviceId");
|
|
62197
|
+
__publicField(this, "_appId");
|
|
62196
62198
|
}
|
|
62197
62199
|
get userId() {
|
|
62198
62200
|
return this._userId;
|
|
@@ -62203,10 +62205,14 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62203
62205
|
get channel() {
|
|
62204
62206
|
return "sg";
|
|
62205
62207
|
}
|
|
62208
|
+
get appId() {
|
|
62209
|
+
return this._appId;
|
|
62210
|
+
}
|
|
62206
62211
|
init(logger2) {
|
|
62207
|
-
const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
|
|
62212
|
+
const { userId, deviceId, enable: enable2, appId, ...teaOptions } = logger2 ?? {};
|
|
62208
62213
|
this._userId = userId || getUserId$1();
|
|
62209
62214
|
this._deviceId = deviceId || getDeviceID$1();
|
|
62215
|
+
this._appId = appId || 654926;
|
|
62210
62216
|
if (enable2 === false) {
|
|
62211
62217
|
return;
|
|
62212
62218
|
}
|
|
@@ -67214,7 +67220,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67214
67220
|
console.warn(create(ErrorCode.INVALID_LOGGER, i18n).message);
|
|
67215
67221
|
}
|
|
67216
67222
|
await prepare({
|
|
67217
|
-
|
|
67223
|
+
logger: options.logger,
|
|
67218
67224
|
appId: ((_c = options.logger) == null ? void 0 : _c.appId) || 654926,
|
|
67219
67225
|
syncWaitSettings: false,
|
|
67220
67226
|
strategies: {
|
|
@@ -67302,9 +67308,10 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67302
67308
|
}
|
|
67303
67309
|
if (!teaTracker.tea) {
|
|
67304
67310
|
teaTracker.init({
|
|
67305
|
-
...options.logger,
|
|
67306
67311
|
userId: options.userId,
|
|
67307
|
-
deviceId: options.deviceId
|
|
67312
|
+
deviceId: options.deviceId,
|
|
67313
|
+
appId: options.appId,
|
|
67314
|
+
...options.logger
|
|
67308
67315
|
});
|
|
67309
67316
|
}
|
|
67310
67317
|
if (!liveVeStrategy.veStrategyManager) {
|
|
@@ -67312,7 +67319,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67312
67319
|
}
|
|
67313
67320
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
67314
67321
|
...options,
|
|
67315
|
-
playerVersion: "2.10.0
|
|
67322
|
+
playerVersion: "2.10.0",
|
|
67316
67323
|
type: "LIVE"
|
|
67317
67324
|
}));
|
|
67318
67325
|
return liveVeStrategy.veStrategyManager;
|