@volcengine/veplayer 2.9.1 → 2.9.3-rc.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 +11 -8
- 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 +11 -8
- 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
|
@@ -21,6 +21,9 @@ import FullScreen from "xgplayer/es/plugins/fullscreen";
|
|
|
21
21
|
import Volume from "xgplayer/es/plugins/volume";
|
|
22
22
|
import MiniScreen from "xgplayer/es/plugins/miniScreen";
|
|
23
23
|
import PIPIcon from "xgplayer/es/plugins/pip";
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { IInitParam } from "byted-tea-sdk/es/index-base.min.js";
|
|
24
27
|
import VeStrategy from "@byted/volcengine-vestrategy";
|
|
25
28
|
import { StrategyRecommendation, BaseStrategy, VeStrategyConfig } from "@byted/volcengine-vestrategy";
|
|
26
29
|
import { HLS } from "@byted/xgplayer-hls.js";
|
|
@@ -5628,7 +5631,7 @@ type Stats = {
|
|
|
5628
5631
|
* @list option
|
|
5629
5632
|
* @kind property
|
|
5630
5633
|
*/
|
|
5631
|
-
interface LoggerConfig {
|
|
5634
|
+
interface LoggerConfig extends Partial<IInitParam> {
|
|
5632
5635
|
/** {zh}
|
|
5633
5636
|
* @brief 是否开启日志上报。
|
|
5634
5637
|
* @default true
|
|
@@ -5961,6 +5964,7 @@ interface PrepareOptions {
|
|
|
5961
5964
|
*/
|
|
5962
5965
|
rtmAdaptiveBuffer?: boolean;
|
|
5963
5966
|
};
|
|
5967
|
+
logger?: LoggerConfig;
|
|
5964
5968
|
}
|
|
5965
5969
|
/** {zh}
|
|
5966
5970
|
* @list option
|
|
@@ -10491,7 +10495,7 @@ declare namespace live {
|
|
|
10491
10495
|
* @list option
|
|
10492
10496
|
* @kind property
|
|
10493
10497
|
*/
|
|
10494
|
-
interface LoggerConfig {
|
|
10498
|
+
interface LoggerConfig extends Partial<IInitParam> {
|
|
10495
10499
|
/** {zh}
|
|
10496
10500
|
* @brief 是否开启日志上报。
|
|
10497
10501
|
* @default true
|
|
@@ -10867,6 +10871,7 @@ declare namespace live {
|
|
|
10867
10871
|
*/
|
|
10868
10872
|
rtmAdaptiveBuffer?: boolean;
|
|
10869
10873
|
};
|
|
10874
|
+
logger?: LoggerConfig;
|
|
10870
10875
|
}
|
|
10871
10876
|
/** {zh}
|
|
10872
10877
|
* @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.9.
|
|
14567
|
+
return "2.9.3-rc.0";
|
|
14568
14568
|
}
|
|
14569
14569
|
/** {zh}
|
|
14570
14570
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -46817,7 +46817,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
46817
46817
|
};
|
|
46818
46818
|
}
|
|
46819
46819
|
afterCreate() {
|
|
46820
|
-
if (!this.player.config.teaTracker) {
|
|
46820
|
+
if (!this.player.config.teaTracker.tea) {
|
|
46821
46821
|
return;
|
|
46822
46822
|
}
|
|
46823
46823
|
this.open();
|
|
@@ -46857,10 +46857,10 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
46857
46857
|
device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
|
|
46858
46858
|
error_report_stop: true,
|
|
46859
46859
|
ext: {
|
|
46860
|
-
veplayer_version: "2.9.
|
|
46860
|
+
veplayer_version: "2.9.3-rc.0",
|
|
46861
46861
|
flv_version: "3.0.23-rc.6",
|
|
46862
46862
|
hls_version: "3.0.21-rc.21",
|
|
46863
|
-
rts_version: "0.2.1-alpha.
|
|
46863
|
+
rts_version: "0.2.1-alpha.45"
|
|
46864
46864
|
}
|
|
46865
46865
|
});
|
|
46866
46866
|
}
|
|
@@ -52010,16 +52010,18 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
52010
52010
|
return "cn";
|
|
52011
52011
|
}
|
|
52012
52012
|
init(logger2) {
|
|
52013
|
-
|
|
52014
|
-
this.
|
|
52015
|
-
|
|
52013
|
+
const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
|
|
52014
|
+
this._userId = userId || getUserId();
|
|
52015
|
+
this._deviceId = deviceId || getDeviceID();
|
|
52016
|
+
if (enable2 === false) {
|
|
52016
52017
|
return;
|
|
52017
52018
|
}
|
|
52018
|
-
this.tea = this._createTea();
|
|
52019
|
+
this.tea = this._createTea(teaOptions);
|
|
52019
52020
|
}
|
|
52020
|
-
_createTea() {
|
|
52021
|
+
_createTea(teaOptions) {
|
|
52021
52022
|
const Tea = new Wi$1("player_track");
|
|
52022
52023
|
Tea.init({
|
|
52024
|
+
...teaOptions,
|
|
52023
52025
|
app_id: 468759,
|
|
52024
52026
|
channel: "cn"
|
|
52025
52027
|
});
|
|
@@ -66833,6 +66835,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
66833
66835
|
return;
|
|
66834
66836
|
}
|
|
66835
66837
|
teaTracker.init({
|
|
66838
|
+
...options.logger,
|
|
66836
66839
|
userId: options.userId,
|
|
66837
66840
|
deviceId: options.deviceId
|
|
66838
66841
|
});
|
package/umd/veplayer.live.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ import FullScreen from "xgplayer/es/plugins/fullscreen";
|
|
|
21
21
|
import Volume from "xgplayer/es/plugins/volume";
|
|
22
22
|
import MiniScreen from "xgplayer/es/plugins/miniScreen";
|
|
23
23
|
import PIPIcon from "xgplayer/es/plugins/pip";
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { IInitParam } from "byted-tea-sdk/es/index-base.min.js";
|
|
24
27
|
import VeStrategy from "@byted/volcengine-vestrategy";
|
|
25
28
|
import { StrategyRecommendation, BaseStrategy, VeStrategyConfig } from "@byted/volcengine-vestrategy";
|
|
26
29
|
import { HLS } from "@byted/xgplayer-hls.js";
|
|
@@ -5628,7 +5631,7 @@ type Stats = {
|
|
|
5628
5631
|
* @list option
|
|
5629
5632
|
* @kind property
|
|
5630
5633
|
*/
|
|
5631
|
-
interface LoggerConfig {
|
|
5634
|
+
interface LoggerConfig extends Partial<IInitParam> {
|
|
5632
5635
|
/** {zh}
|
|
5633
5636
|
* @brief 是否开启日志上报。
|
|
5634
5637
|
* @default true
|
|
@@ -5961,6 +5964,7 @@ interface PrepareOptions {
|
|
|
5961
5964
|
*/
|
|
5962
5965
|
rtmAdaptiveBuffer?: boolean;
|
|
5963
5966
|
};
|
|
5967
|
+
logger?: LoggerConfig;
|
|
5964
5968
|
}
|
|
5965
5969
|
/** {zh}
|
|
5966
5970
|
* @list option
|
|
@@ -10491,7 +10495,7 @@ declare namespace live {
|
|
|
10491
10495
|
* @list option
|
|
10492
10496
|
* @kind property
|
|
10493
10497
|
*/
|
|
10494
|
-
interface LoggerConfig {
|
|
10498
|
+
interface LoggerConfig extends Partial<IInitParam> {
|
|
10495
10499
|
/** {zh}
|
|
10496
10500
|
* @brief 是否开启日志上报。
|
|
10497
10501
|
* @default true
|
|
@@ -10867,6 +10871,7 @@ declare namespace live {
|
|
|
10867
10871
|
*/
|
|
10868
10872
|
rtmAdaptiveBuffer?: boolean;
|
|
10869
10873
|
};
|
|
10874
|
+
logger?: LoggerConfig;
|
|
10870
10875
|
}
|
|
10871
10876
|
/** {zh}
|
|
10872
10877
|
* @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.9.
|
|
14567
|
+
return "2.9.3-rc.0";
|
|
14568
14568
|
}
|
|
14569
14569
|
/** {zh}
|
|
14570
14570
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -46817,7 +46817,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
46817
46817
|
};
|
|
46818
46818
|
}
|
|
46819
46819
|
afterCreate() {
|
|
46820
|
-
if (!this.player.config.teaTracker) {
|
|
46820
|
+
if (!this.player.config.teaTracker.tea) {
|
|
46821
46821
|
return;
|
|
46822
46822
|
}
|
|
46823
46823
|
this.open();
|
|
@@ -46857,10 +46857,10 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
46857
46857
|
device_id: (_f = (_e2 = this.player.config) == null ? void 0 : _e2.teaTracker) == null ? void 0 : _f.deviceId,
|
|
46858
46858
|
error_report_stop: true,
|
|
46859
46859
|
ext: {
|
|
46860
|
-
veplayer_version: "2.9.
|
|
46860
|
+
veplayer_version: "2.9.3-rc.0",
|
|
46861
46861
|
flv_version: "3.0.23-rc.6",
|
|
46862
46862
|
hls_version: "3.0.21-rc.21",
|
|
46863
|
-
rts_version: "0.2.1-alpha.
|
|
46863
|
+
rts_version: "0.2.1-alpha.45"
|
|
46864
46864
|
}
|
|
46865
46865
|
});
|
|
46866
46866
|
}
|
|
@@ -52010,16 +52010,18 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
|
|
|
52010
52010
|
return "cn";
|
|
52011
52011
|
}
|
|
52012
52012
|
init(logger2) {
|
|
52013
|
-
|
|
52014
|
-
this.
|
|
52015
|
-
|
|
52013
|
+
const { userId, deviceId, enable: enable2, ...teaOptions } = logger2 ?? {};
|
|
52014
|
+
this._userId = userId || getUserId();
|
|
52015
|
+
this._deviceId = deviceId || getDeviceID();
|
|
52016
|
+
if (enable2 === false) {
|
|
52016
52017
|
return;
|
|
52017
52018
|
}
|
|
52018
|
-
this.tea = this._createTea();
|
|
52019
|
+
this.tea = this._createTea(teaOptions);
|
|
52019
52020
|
}
|
|
52020
|
-
_createTea() {
|
|
52021
|
+
_createTea(teaOptions) {
|
|
52021
52022
|
const Tea = new Wi$1("player_track");
|
|
52022
52023
|
Tea.init({
|
|
52024
|
+
...teaOptions,
|
|
52023
52025
|
app_id: 468759,
|
|
52024
52026
|
channel: "cn"
|
|
52025
52027
|
});
|
|
@@ -66833,6 +66835,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
66833
66835
|
return;
|
|
66834
66836
|
}
|
|
66835
66837
|
teaTracker.init({
|
|
66838
|
+
...options.logger,
|
|
66836
66839
|
userId: options.userId,
|
|
66837
66840
|
deviceId: options.deviceId
|
|
66838
66841
|
});
|