@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.
- package/esm/veplayer.biz.live.development.js +9 -6
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +7 -2
- package/esm/veplayer.development.js +12 -9
- package/esm/veplayer.live.d.ts +7 -2
- package/esm/veplayer.live.development.js +12 -9
- 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 +9 -6
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +7 -2
- package/umd/veplayer.development.js +12 -9
- package/umd/veplayer.live.d.ts +7 -2
- package/umd/veplayer.live.development.js +12 -9
- 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
- package/veplayer.d.ts +7 -2
- package/veplayer.live.d.ts +7 -2
package/umd/veplayer.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ import MiniScreen from "xgplayer/es/plugins/miniScreen";
|
|
|
23
23
|
import PIPIcon from "xgplayer/es/plugins/pip";
|
|
24
24
|
import VeStrategy from "@byted/volcengine-vestrategy";
|
|
25
25
|
import { StrategyRecommendation, BaseStrategy, VeStrategyConfig, VideoType } from "@byted/volcengine-vestrategy";
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { IInitParam } from "byted-tea-sdk/es/index-base.min.js";
|
|
26
29
|
import { HLS } from "@byted/xgplayer-hls.js";
|
|
27
30
|
declare const EN: {
|
|
28
31
|
DEFINITION_FALLBACK_TOAST: string;
|
|
@@ -5740,7 +5743,7 @@ type Stats = {
|
|
|
5740
5743
|
* @list option
|
|
5741
5744
|
* @kind property
|
|
5742
5745
|
*/
|
|
5743
|
-
interface LoggerConfig {
|
|
5746
|
+
interface LoggerConfig extends Partial<IInitParam> {
|
|
5744
5747
|
/** {zh}
|
|
5745
5748
|
* @brief 是否开启日志上报。
|
|
5746
5749
|
* @default true
|
|
@@ -5965,6 +5968,7 @@ interface PrepareOptions {
|
|
|
5965
5968
|
rtmAdaptiveBuffer?: boolean;
|
|
5966
5969
|
};
|
|
5967
5970
|
syncWaitSettings?: boolean;
|
|
5971
|
+
logger?: LoggerConfig;
|
|
5968
5972
|
}
|
|
5969
5973
|
/** {zh}
|
|
5970
5974
|
* @list option
|
|
@@ -10633,7 +10637,7 @@ declare namespace live {
|
|
|
10633
10637
|
* @list option
|
|
10634
10638
|
* @kind property
|
|
10635
10639
|
*/
|
|
10636
|
-
interface LoggerConfig {
|
|
10640
|
+
interface LoggerConfig extends Partial<IInitParam> {
|
|
10637
10641
|
/** {zh}
|
|
10638
10642
|
* @brief 是否开启日志上报。
|
|
10639
10643
|
* @default true
|
|
@@ -10875,6 +10879,7 @@ declare namespace live {
|
|
|
10875
10879
|
rtmAdaptiveBuffer?: boolean;
|
|
10876
10880
|
};
|
|
10877
10881
|
syncWaitSettings?: boolean;
|
|
10882
|
+
logger?: LoggerConfig;
|
|
10878
10883
|
}
|
|
10879
10884
|
/** {zh}
|
|
10880
10885
|
* @list option
|
|
@@ -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-rc.
|
|
14567
|
+
return "2.10.0-rc.1";
|
|
14568
14568
|
}
|
|
14569
14569
|
/** {zh}
|
|
14570
14570
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -55336,7 +55336,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
55336
55336
|
};
|
|
55337
55337
|
}
|
|
55338
55338
|
afterCreate() {
|
|
55339
|
-
if (!this.player.config.teaTracker) {
|
|
55339
|
+
if (!this.player.config.teaTracker.tea) {
|
|
55340
55340
|
return;
|
|
55341
55341
|
}
|
|
55342
55342
|
this.open();
|
|
@@ -55376,7 +55376,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
55376
55376
|
device_id: (_g = (_f = this.player.config) == null ? void 0 : _f.teaTracker) == null ? void 0 : _g.deviceId,
|
|
55377
55377
|
error_report_stop: true,
|
|
55378
55378
|
ext: {
|
|
55379
|
-
veplayer_version: "2.10.0-rc.
|
|
55379
|
+
veplayer_version: "2.10.0-rc.1",
|
|
55380
55380
|
flv_version: "3.0.23-rc.6",
|
|
55381
55381
|
hls_version: "3.0.21-rc.21",
|
|
55382
55382
|
rts_version: "0.2.1-alpha.47"
|
|
@@ -62204,20 +62204,22 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62204
62204
|
return "sg";
|
|
62205
62205
|
}
|
|
62206
62206
|
init(logger2) {
|
|
62207
|
-
|
|
62208
|
-
this.
|
|
62209
|
-
|
|
62207
|
+
const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
|
|
62208
|
+
this._userId = userId || getUserId$1();
|
|
62209
|
+
this._deviceId = deviceId || getDeviceID$1();
|
|
62210
|
+
if (enable2 === false) {
|
|
62210
62211
|
return;
|
|
62211
62212
|
}
|
|
62212
|
-
this.tea = this._createTea();
|
|
62213
|
+
this.tea = this._createTea(teaOptions);
|
|
62213
62214
|
}
|
|
62214
62215
|
createPlayerLogger(options) {
|
|
62215
62216
|
this.liveLogger = new LoggerControl(options);
|
|
62216
62217
|
return this.liveLogger;
|
|
62217
62218
|
}
|
|
62218
|
-
_createTea() {
|
|
62219
|
+
_createTea(teaOptions) {
|
|
62219
62220
|
const Tea = new Wi$1("player_track");
|
|
62220
62221
|
Tea.init({
|
|
62222
|
+
...teaOptions,
|
|
62221
62223
|
app_id: 507365,
|
|
62222
62224
|
channel: "sg"
|
|
62223
62225
|
});
|
|
@@ -67300,6 +67302,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67300
67302
|
}
|
|
67301
67303
|
if (!teaTracker.tea) {
|
|
67302
67304
|
teaTracker.init({
|
|
67305
|
+
...options.logger,
|
|
67303
67306
|
userId: options.userId,
|
|
67304
67307
|
deviceId: options.deviceId
|
|
67305
67308
|
});
|
|
@@ -67309,7 +67312,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67309
67312
|
}
|
|
67310
67313
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
67311
67314
|
...options,
|
|
67312
|
-
playerVersion: "2.10.0-rc.
|
|
67315
|
+
playerVersion: "2.10.0-rc.1",
|
|
67313
67316
|
type: "LIVE"
|
|
67314
67317
|
}));
|
|
67315
67318
|
return liveVeStrategy.veStrategyManager;
|
package/umd/veplayer.live.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ import MiniScreen from "xgplayer/es/plugins/miniScreen";
|
|
|
23
23
|
import PIPIcon from "xgplayer/es/plugins/pip";
|
|
24
24
|
import VeStrategy from "@byted/volcengine-vestrategy";
|
|
25
25
|
import { StrategyRecommendation, BaseStrategy, VeStrategyConfig, VideoType } from "@byted/volcengine-vestrategy";
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { IInitParam } from "byted-tea-sdk/es/index-base.min.js";
|
|
26
29
|
import { HLS } from "@byted/xgplayer-hls.js";
|
|
27
30
|
declare const EN: {
|
|
28
31
|
DEFINITION_FALLBACK_TOAST: string;
|
|
@@ -5740,7 +5743,7 @@ type Stats = {
|
|
|
5740
5743
|
* @list option
|
|
5741
5744
|
* @kind property
|
|
5742
5745
|
*/
|
|
5743
|
-
interface LoggerConfig {
|
|
5746
|
+
interface LoggerConfig extends Partial<IInitParam> {
|
|
5744
5747
|
/** {zh}
|
|
5745
5748
|
* @brief 是否开启日志上报。
|
|
5746
5749
|
* @default true
|
|
@@ -5965,6 +5968,7 @@ interface PrepareOptions {
|
|
|
5965
5968
|
rtmAdaptiveBuffer?: boolean;
|
|
5966
5969
|
};
|
|
5967
5970
|
syncWaitSettings?: boolean;
|
|
5971
|
+
logger?: LoggerConfig;
|
|
5968
5972
|
}
|
|
5969
5973
|
/** {zh}
|
|
5970
5974
|
* @list option
|
|
@@ -10633,7 +10637,7 @@ declare namespace live {
|
|
|
10633
10637
|
* @list option
|
|
10634
10638
|
* @kind property
|
|
10635
10639
|
*/
|
|
10636
|
-
interface LoggerConfig {
|
|
10640
|
+
interface LoggerConfig extends Partial<IInitParam> {
|
|
10637
10641
|
/** {zh}
|
|
10638
10642
|
* @brief 是否开启日志上报。
|
|
10639
10643
|
* @default true
|
|
@@ -10875,6 +10879,7 @@ declare namespace live {
|
|
|
10875
10879
|
rtmAdaptiveBuffer?: boolean;
|
|
10876
10880
|
};
|
|
10877
10881
|
syncWaitSettings?: boolean;
|
|
10882
|
+
logger?: LoggerConfig;
|
|
10878
10883
|
}
|
|
10879
10884
|
/** {zh}
|
|
10880
10885
|
* @list option
|
|
@@ -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-rc.
|
|
14567
|
+
return "2.10.0-rc.1";
|
|
14568
14568
|
}
|
|
14569
14569
|
/** {zh}
|
|
14570
14570
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -55336,7 +55336,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
55336
55336
|
};
|
|
55337
55337
|
}
|
|
55338
55338
|
afterCreate() {
|
|
55339
|
-
if (!this.player.config.teaTracker) {
|
|
55339
|
+
if (!this.player.config.teaTracker.tea) {
|
|
55340
55340
|
return;
|
|
55341
55341
|
}
|
|
55342
55342
|
this.open();
|
|
@@ -55376,7 +55376,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
55376
55376
|
device_id: (_g = (_f = this.player.config) == null ? void 0 : _f.teaTracker) == null ? void 0 : _g.deviceId,
|
|
55377
55377
|
error_report_stop: true,
|
|
55378
55378
|
ext: {
|
|
55379
|
-
veplayer_version: "2.10.0-rc.
|
|
55379
|
+
veplayer_version: "2.10.0-rc.1",
|
|
55380
55380
|
flv_version: "3.0.23-rc.6",
|
|
55381
55381
|
hls_version: "3.0.21-rc.21",
|
|
55382
55382
|
rts_version: "0.2.1-alpha.47"
|
|
@@ -62204,20 +62204,22 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
62204
62204
|
return "sg";
|
|
62205
62205
|
}
|
|
62206
62206
|
init(logger2) {
|
|
62207
|
-
|
|
62208
|
-
this.
|
|
62209
|
-
|
|
62207
|
+
const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
|
|
62208
|
+
this._userId = userId || getUserId$1();
|
|
62209
|
+
this._deviceId = deviceId || getDeviceID$1();
|
|
62210
|
+
if (enable2 === false) {
|
|
62210
62211
|
return;
|
|
62211
62212
|
}
|
|
62212
|
-
this.tea = this._createTea();
|
|
62213
|
+
this.tea = this._createTea(teaOptions);
|
|
62213
62214
|
}
|
|
62214
62215
|
createPlayerLogger(options) {
|
|
62215
62216
|
this.liveLogger = new LoggerControl(options);
|
|
62216
62217
|
return this.liveLogger;
|
|
62217
62218
|
}
|
|
62218
|
-
_createTea() {
|
|
62219
|
+
_createTea(teaOptions) {
|
|
62219
62220
|
const Tea = new Wi$1("player_track");
|
|
62220
62221
|
Tea.init({
|
|
62222
|
+
...teaOptions,
|
|
62221
62223
|
app_id: 507365,
|
|
62222
62224
|
channel: "sg"
|
|
62223
62225
|
});
|
|
@@ -67300,6 +67302,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67300
67302
|
}
|
|
67301
67303
|
if (!teaTracker.tea) {
|
|
67302
67304
|
teaTracker.init({
|
|
67305
|
+
...options.logger,
|
|
67303
67306
|
userId: options.userId,
|
|
67304
67307
|
deviceId: options.deviceId
|
|
67305
67308
|
});
|
|
@@ -67309,7 +67312,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
67309
67312
|
}
|
|
67310
67313
|
await ((_a = liveVeStrategy.veStrategyManager) == null ? void 0 : _a.init({
|
|
67311
67314
|
...options,
|
|
67312
|
-
playerVersion: "2.10.0-rc.
|
|
67315
|
+
playerVersion: "2.10.0-rc.1",
|
|
67313
67316
|
type: "LIVE"
|
|
67314
67317
|
}));
|
|
67315
67318
|
return liveVeStrategy.veStrategyManager;
|