@byteplus/veplayer 2.6.1-rc.1 → 2.6.2-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.css +2 -1
- package/esm/veplayer.biz.live.development.js +20 -5
- package/esm/veplayer.biz.live.production.css +1 -1
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +66 -30
- package/esm/veplayer.development.css +2 -1
- package/esm/veplayer.development.js +22 -7
- package/esm/veplayer.live.d.ts +66 -30
- package/esm/veplayer.live.development.css +2 -1
- package/esm/veplayer.live.development.js +22 -7
- package/esm/veplayer.live.production.css +1 -1
- package/esm/veplayer.live.production.js +2 -2
- package/esm/veplayer.production.css +1 -1
- 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.css +2 -1
- package/umd/veplayer.biz.live.development.js +20 -5
- package/umd/veplayer.biz.live.production.css +1 -1
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +66 -30
- package/umd/veplayer.development.css +2 -1
- package/umd/veplayer.development.js +22 -7
- package/umd/veplayer.live.d.ts +66 -30
- package/umd/veplayer.live.development.css +2 -1
- package/umd/veplayer.live.development.js +22 -7
- package/umd/veplayer.live.production.css +1 -1
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.css +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 +66 -30
- package/veplayer.live.d.ts +66 -30
package/esm/veplayer.d.ts
CHANGED
|
@@ -6305,14 +6305,12 @@ interface StatsSnapShoot {
|
|
|
6305
6305
|
/** {zh}
|
|
6306
6306
|
* @list option
|
|
6307
6307
|
* @kind property
|
|
6308
|
-
* @brief FLV 直播流播放信息。
|
|
6309
6308
|
*/
|
|
6310
6309
|
/** {en}
|
|
6311
6310
|
* @list option
|
|
6312
6311
|
* @kind property
|
|
6313
|
-
* @brief FLV live stream information.
|
|
6314
6312
|
*/
|
|
6315
|
-
interface
|
|
6313
|
+
interface Stats$0 {
|
|
6316
6314
|
/** {zh}
|
|
6317
6315
|
* @brief 音频格式。
|
|
6318
6316
|
* @hidden
|
|
@@ -6414,33 +6412,45 @@ interface FlvStats {
|
|
|
6414
6412
|
*/
|
|
6415
6413
|
samplerate: number;
|
|
6416
6414
|
/** {zh}
|
|
6417
|
-
* @
|
|
6415
|
+
* @hidden
|
|
6418
6416
|
*/
|
|
6419
6417
|
/** {en}
|
|
6420
|
-
* @
|
|
6418
|
+
* @hidden
|
|
6421
6419
|
*/
|
|
6422
|
-
|
|
6420
|
+
videoCodec: string;
|
|
6423
6421
|
/** {zh}
|
|
6424
|
-
* @brief
|
|
6422
|
+
* @brief 视频宽度。
|
|
6425
6423
|
*/
|
|
6426
6424
|
/** {en}
|
|
6427
|
-
* @brief
|
|
6425
|
+
* @brief Video wight.
|
|
6428
6426
|
*/
|
|
6429
|
-
|
|
6427
|
+
width: number;
|
|
6428
|
+
}
|
|
6429
|
+
/** {zh}
|
|
6430
|
+
* @list option
|
|
6431
|
+
* @kind property
|
|
6432
|
+
* @brief FLV 直播流播放信息。
|
|
6433
|
+
*/
|
|
6434
|
+
/** {en}
|
|
6435
|
+
* @list option
|
|
6436
|
+
* @kind property
|
|
6437
|
+
* @brief FLV live stream information.
|
|
6438
|
+
*/
|
|
6439
|
+
interface FlvStats extends Stats$0 {
|
|
6430
6440
|
/** {zh}
|
|
6431
|
-
* @
|
|
6441
|
+
* @brief 总共收到的字节数。
|
|
6432
6442
|
*/
|
|
6433
6443
|
/** {en}
|
|
6434
|
-
* @
|
|
6444
|
+
* @brief The total number of bytes received.
|
|
6435
6445
|
*/
|
|
6436
|
-
|
|
6446
|
+
totalReceivedByte: number;
|
|
6437
6447
|
/** {zh}
|
|
6438
|
-
* @brief
|
|
6448
|
+
* @brief 接收所有字节消耗时长。
|
|
6439
6449
|
*/
|
|
6440
6450
|
/** {en}
|
|
6441
|
-
* @brief
|
|
6451
|
+
* @brief The time consumed for receiving all bytes.
|
|
6442
6452
|
*/
|
|
6443
|
-
|
|
6453
|
+
totalReceivedCost: number;
|
|
6444
6454
|
}
|
|
6445
6455
|
/** {zh}
|
|
6446
6456
|
* @detail api
|
|
@@ -6576,6 +6586,14 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
6576
6586
|
* @brief Obtain the playback information of FLV pull streaming.
|
|
6577
6587
|
*/
|
|
6578
6588
|
getFLVStats(): FlvStats;
|
|
6589
|
+
/** {zh}
|
|
6590
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
6591
|
+
* @returns
|
|
6592
|
+
*/
|
|
6593
|
+
/** {en}
|
|
6594
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
6595
|
+
*/
|
|
6596
|
+
getHLSStats(): Stats$0;
|
|
6579
6597
|
}
|
|
6580
6598
|
/** {zh}
|
|
6581
6599
|
* @detail api
|
|
@@ -11837,14 +11855,12 @@ declare namespace live {
|
|
|
11837
11855
|
/** {zh}
|
|
11838
11856
|
* @list option
|
|
11839
11857
|
* @kind property
|
|
11840
|
-
* @brief FLV 直播流播放信息。
|
|
11841
11858
|
*/
|
|
11842
11859
|
/** {en}
|
|
11843
11860
|
* @list option
|
|
11844
11861
|
* @kind property
|
|
11845
|
-
* @brief FLV live stream information.
|
|
11846
11862
|
*/
|
|
11847
|
-
interface
|
|
11863
|
+
interface Stats$0 {
|
|
11848
11864
|
/** {zh}
|
|
11849
11865
|
* @brief 音频格式。
|
|
11850
11866
|
* @hidden
|
|
@@ -11946,33 +11962,45 @@ declare namespace live {
|
|
|
11946
11962
|
*/
|
|
11947
11963
|
samplerate: number;
|
|
11948
11964
|
/** {zh}
|
|
11949
|
-
* @
|
|
11965
|
+
* @hidden
|
|
11950
11966
|
*/
|
|
11951
11967
|
/** {en}
|
|
11952
|
-
* @
|
|
11968
|
+
* @hidden
|
|
11953
11969
|
*/
|
|
11954
|
-
|
|
11970
|
+
videoCodec: string;
|
|
11955
11971
|
/** {zh}
|
|
11956
|
-
* @brief
|
|
11972
|
+
* @brief 视频宽度。
|
|
11957
11973
|
*/
|
|
11958
11974
|
/** {en}
|
|
11959
|
-
* @brief
|
|
11975
|
+
* @brief Video wight.
|
|
11960
11976
|
*/
|
|
11961
|
-
|
|
11977
|
+
width: number;
|
|
11978
|
+
}
|
|
11979
|
+
/** {zh}
|
|
11980
|
+
* @list option
|
|
11981
|
+
* @kind property
|
|
11982
|
+
* @brief FLV 直播流播放信息。
|
|
11983
|
+
*/
|
|
11984
|
+
/** {en}
|
|
11985
|
+
* @list option
|
|
11986
|
+
* @kind property
|
|
11987
|
+
* @brief FLV live stream information.
|
|
11988
|
+
*/
|
|
11989
|
+
interface FlvStats extends Stats$0 {
|
|
11962
11990
|
/** {zh}
|
|
11963
|
-
* @
|
|
11991
|
+
* @brief 总共收到的字节数。
|
|
11964
11992
|
*/
|
|
11965
11993
|
/** {en}
|
|
11966
|
-
* @
|
|
11994
|
+
* @brief The total number of bytes received.
|
|
11967
11995
|
*/
|
|
11968
|
-
|
|
11996
|
+
totalReceivedByte: number;
|
|
11969
11997
|
/** {zh}
|
|
11970
|
-
* @brief
|
|
11998
|
+
* @brief 接收所有字节消耗时长。
|
|
11971
11999
|
*/
|
|
11972
12000
|
/** {en}
|
|
11973
|
-
* @brief
|
|
12001
|
+
* @brief The time consumed for receiving all bytes.
|
|
11974
12002
|
*/
|
|
11975
|
-
|
|
12003
|
+
totalReceivedCost: number;
|
|
11976
12004
|
}
|
|
11977
12005
|
/** {zh}
|
|
11978
12006
|
* @detail api
|
|
@@ -12108,6 +12136,14 @@ declare namespace live {
|
|
|
12108
12136
|
* @brief Obtain the playback information of FLV pull streaming.
|
|
12109
12137
|
*/
|
|
12110
12138
|
getFLVStats(): FlvStats;
|
|
12139
|
+
/** {zh}
|
|
12140
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
12141
|
+
* @returns
|
|
12142
|
+
*/
|
|
12143
|
+
/** {en}
|
|
12144
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
12145
|
+
*/
|
|
12146
|
+
getHLSStats(): Stats$0;
|
|
12111
12147
|
}
|
|
12112
12148
|
/** {zh}
|
|
12113
12149
|
* @detail api
|
|
@@ -14439,7 +14439,7 @@ class VePlayerBase {
|
|
|
14439
14439
|
* @brief Retrieve the player SDK version number.
|
|
14440
14440
|
*/
|
|
14441
14441
|
get playerVersion() {
|
|
14442
|
-
return "2.6.
|
|
14442
|
+
return "2.6.2-rc.0";
|
|
14443
14443
|
}
|
|
14444
14444
|
/** {zh}
|
|
14445
14445
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -22806,7 +22806,7 @@ class Logger extends Plugin {
|
|
|
22806
22806
|
device_id: this._deviceId,
|
|
22807
22807
|
error_report_stop: true,
|
|
22808
22808
|
ext: {
|
|
22809
|
-
veplayer_version: "2.6.
|
|
22809
|
+
veplayer_version: "2.6.2-rc.0",
|
|
22810
22810
|
flv_version: "3.0.21-rc.21",
|
|
22811
22811
|
hls_version: "3.0.21-rc.21",
|
|
22812
22812
|
rts_version: "0.2.1-alpha.14"
|
|
@@ -22820,6 +22820,7 @@ function normalizeNumber(value, transform2) {
|
|
|
22820
22820
|
return transform2 ? transform2(value) : value.toString();
|
|
22821
22821
|
}
|
|
22822
22822
|
function getDefaultRow(data) {
|
|
22823
|
+
var _a;
|
|
22823
22824
|
return {
|
|
22824
22825
|
rows: [
|
|
22825
22826
|
{
|
|
@@ -22835,7 +22836,10 @@ function getDefaultRow(data) {
|
|
|
22835
22836
|
{
|
|
22836
22837
|
key: "bitrate",
|
|
22837
22838
|
labelTextKey: "BITRATE",
|
|
22838
|
-
value: normalizeNumber(
|
|
22839
|
+
value: normalizeNumber(
|
|
22840
|
+
data.bitrate,
|
|
22841
|
+
(value) => `${(value / 1e3).toFixed(2)} kbps`
|
|
22842
|
+
)
|
|
22839
22843
|
},
|
|
22840
22844
|
{
|
|
22841
22845
|
key: "gop",
|
|
@@ -22845,7 +22849,7 @@ function getDefaultRow(data) {
|
|
|
22845
22849
|
{
|
|
22846
22850
|
key: "resolution",
|
|
22847
22851
|
labelTextKey: "RESOLUTION",
|
|
22848
|
-
value: `${normalizeNumber(data.
|
|
22852
|
+
value: `${normalizeNumber(data.width)} * ${normalizeNumber(
|
|
22849
22853
|
data.height
|
|
22850
22854
|
)}`
|
|
22851
22855
|
},
|
|
@@ -22857,14 +22861,14 @@ function getDefaultRow(data) {
|
|
|
22857
22861
|
{
|
|
22858
22862
|
key: "bufferEnd",
|
|
22859
22863
|
labelTextKey: "BUFFER_END",
|
|
22860
|
-
value: normalizeNumber(data.bufferEnd)
|
|
22864
|
+
value: normalizeNumber(Number((_a = data.bufferEnd) == null ? void 0 : _a.toFixed(2)))
|
|
22861
22865
|
},
|
|
22862
22866
|
{
|
|
22863
22867
|
key: "currentTime",
|
|
22864
22868
|
labelTextKey: "CURRENT_TIME",
|
|
22865
22869
|
value: normalizeNumber(
|
|
22866
22870
|
data.currentTime,
|
|
22867
|
-
(value) => value.toFixed(
|
|
22871
|
+
(value) => value.toFixed(4) + "s"
|
|
22868
22872
|
)
|
|
22869
22873
|
}
|
|
22870
22874
|
]
|
|
@@ -22877,7 +22881,7 @@ function getSoftDecodeRow(data) {
|
|
|
22877
22881
|
{
|
|
22878
22882
|
key: "decodeEfficiency",
|
|
22879
22883
|
labelTextKey: "DECODE_EFFICIENCY",
|
|
22880
|
-
value: normalizeNumber(data.decodeFps, (value) => value + "frames/s")
|
|
22884
|
+
value: normalizeNumber(data.decodeFps, (value) => value + " frames/s")
|
|
22881
22885
|
},
|
|
22882
22886
|
{
|
|
22883
22887
|
key: "decodeCost",
|
|
@@ -23339,6 +23343,17 @@ class VePlayerLive extends VePlayerBase {
|
|
|
23339
23343
|
var _a, _b, _c;
|
|
23340
23344
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
|
|
23341
23345
|
}
|
|
23346
|
+
/** {zh}
|
|
23347
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
23348
|
+
* @returns
|
|
23349
|
+
*/
|
|
23350
|
+
/** {en}
|
|
23351
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
23352
|
+
*/
|
|
23353
|
+
getHLSStats() {
|
|
23354
|
+
var _a, _b, _c;
|
|
23355
|
+
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
23356
|
+
}
|
|
23342
23357
|
}
|
|
23343
23358
|
async function createLivePlayer(options) {
|
|
23344
23359
|
var _a, _b, _c, _d;
|
package/esm/veplayer.live.d.ts
CHANGED
|
@@ -6305,14 +6305,12 @@ interface StatsSnapShoot {
|
|
|
6305
6305
|
/** {zh}
|
|
6306
6306
|
* @list option
|
|
6307
6307
|
* @kind property
|
|
6308
|
-
* @brief FLV 直播流播放信息。
|
|
6309
6308
|
*/
|
|
6310
6309
|
/** {en}
|
|
6311
6310
|
* @list option
|
|
6312
6311
|
* @kind property
|
|
6313
|
-
* @brief FLV live stream information.
|
|
6314
6312
|
*/
|
|
6315
|
-
interface
|
|
6313
|
+
interface Stats$0 {
|
|
6316
6314
|
/** {zh}
|
|
6317
6315
|
* @brief 音频格式。
|
|
6318
6316
|
* @hidden
|
|
@@ -6414,33 +6412,45 @@ interface FlvStats {
|
|
|
6414
6412
|
*/
|
|
6415
6413
|
samplerate: number;
|
|
6416
6414
|
/** {zh}
|
|
6417
|
-
* @
|
|
6415
|
+
* @hidden
|
|
6418
6416
|
*/
|
|
6419
6417
|
/** {en}
|
|
6420
|
-
* @
|
|
6418
|
+
* @hidden
|
|
6421
6419
|
*/
|
|
6422
|
-
|
|
6420
|
+
videoCodec: string;
|
|
6423
6421
|
/** {zh}
|
|
6424
|
-
* @brief
|
|
6422
|
+
* @brief 视频宽度。
|
|
6425
6423
|
*/
|
|
6426
6424
|
/** {en}
|
|
6427
|
-
* @brief
|
|
6425
|
+
* @brief Video wight.
|
|
6428
6426
|
*/
|
|
6429
|
-
|
|
6427
|
+
width: number;
|
|
6428
|
+
}
|
|
6429
|
+
/** {zh}
|
|
6430
|
+
* @list option
|
|
6431
|
+
* @kind property
|
|
6432
|
+
* @brief FLV 直播流播放信息。
|
|
6433
|
+
*/
|
|
6434
|
+
/** {en}
|
|
6435
|
+
* @list option
|
|
6436
|
+
* @kind property
|
|
6437
|
+
* @brief FLV live stream information.
|
|
6438
|
+
*/
|
|
6439
|
+
interface FlvStats extends Stats$0 {
|
|
6430
6440
|
/** {zh}
|
|
6431
|
-
* @
|
|
6441
|
+
* @brief 总共收到的字节数。
|
|
6432
6442
|
*/
|
|
6433
6443
|
/** {en}
|
|
6434
|
-
* @
|
|
6444
|
+
* @brief The total number of bytes received.
|
|
6435
6445
|
*/
|
|
6436
|
-
|
|
6446
|
+
totalReceivedByte: number;
|
|
6437
6447
|
/** {zh}
|
|
6438
|
-
* @brief
|
|
6448
|
+
* @brief 接收所有字节消耗时长。
|
|
6439
6449
|
*/
|
|
6440
6450
|
/** {en}
|
|
6441
|
-
* @brief
|
|
6451
|
+
* @brief The time consumed for receiving all bytes.
|
|
6442
6452
|
*/
|
|
6443
|
-
|
|
6453
|
+
totalReceivedCost: number;
|
|
6444
6454
|
}
|
|
6445
6455
|
/** {zh}
|
|
6446
6456
|
* @detail api
|
|
@@ -6576,6 +6586,14 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
6576
6586
|
* @brief Obtain the playback information of FLV pull streaming.
|
|
6577
6587
|
*/
|
|
6578
6588
|
getFLVStats(): FlvStats;
|
|
6589
|
+
/** {zh}
|
|
6590
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
6591
|
+
* @returns
|
|
6592
|
+
*/
|
|
6593
|
+
/** {en}
|
|
6594
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
6595
|
+
*/
|
|
6596
|
+
getHLSStats(): Stats$0;
|
|
6579
6597
|
}
|
|
6580
6598
|
/** {zh}
|
|
6581
6599
|
* @detail api
|
|
@@ -11837,14 +11855,12 @@ declare namespace live {
|
|
|
11837
11855
|
/** {zh}
|
|
11838
11856
|
* @list option
|
|
11839
11857
|
* @kind property
|
|
11840
|
-
* @brief FLV 直播流播放信息。
|
|
11841
11858
|
*/
|
|
11842
11859
|
/** {en}
|
|
11843
11860
|
* @list option
|
|
11844
11861
|
* @kind property
|
|
11845
|
-
* @brief FLV live stream information.
|
|
11846
11862
|
*/
|
|
11847
|
-
interface
|
|
11863
|
+
interface Stats$0 {
|
|
11848
11864
|
/** {zh}
|
|
11849
11865
|
* @brief 音频格式。
|
|
11850
11866
|
* @hidden
|
|
@@ -11946,33 +11962,45 @@ declare namespace live {
|
|
|
11946
11962
|
*/
|
|
11947
11963
|
samplerate: number;
|
|
11948
11964
|
/** {zh}
|
|
11949
|
-
* @
|
|
11965
|
+
* @hidden
|
|
11950
11966
|
*/
|
|
11951
11967
|
/** {en}
|
|
11952
|
-
* @
|
|
11968
|
+
* @hidden
|
|
11953
11969
|
*/
|
|
11954
|
-
|
|
11970
|
+
videoCodec: string;
|
|
11955
11971
|
/** {zh}
|
|
11956
|
-
* @brief
|
|
11972
|
+
* @brief 视频宽度。
|
|
11957
11973
|
*/
|
|
11958
11974
|
/** {en}
|
|
11959
|
-
* @brief
|
|
11975
|
+
* @brief Video wight.
|
|
11960
11976
|
*/
|
|
11961
|
-
|
|
11977
|
+
width: number;
|
|
11978
|
+
}
|
|
11979
|
+
/** {zh}
|
|
11980
|
+
* @list option
|
|
11981
|
+
* @kind property
|
|
11982
|
+
* @brief FLV 直播流播放信息。
|
|
11983
|
+
*/
|
|
11984
|
+
/** {en}
|
|
11985
|
+
* @list option
|
|
11986
|
+
* @kind property
|
|
11987
|
+
* @brief FLV live stream information.
|
|
11988
|
+
*/
|
|
11989
|
+
interface FlvStats extends Stats$0 {
|
|
11962
11990
|
/** {zh}
|
|
11963
|
-
* @
|
|
11991
|
+
* @brief 总共收到的字节数。
|
|
11964
11992
|
*/
|
|
11965
11993
|
/** {en}
|
|
11966
|
-
* @
|
|
11994
|
+
* @brief The total number of bytes received.
|
|
11967
11995
|
*/
|
|
11968
|
-
|
|
11996
|
+
totalReceivedByte: number;
|
|
11969
11997
|
/** {zh}
|
|
11970
|
-
* @brief
|
|
11998
|
+
* @brief 接收所有字节消耗时长。
|
|
11971
11999
|
*/
|
|
11972
12000
|
/** {en}
|
|
11973
|
-
* @brief
|
|
12001
|
+
* @brief The time consumed for receiving all bytes.
|
|
11974
12002
|
*/
|
|
11975
|
-
|
|
12003
|
+
totalReceivedCost: number;
|
|
11976
12004
|
}
|
|
11977
12005
|
/** {zh}
|
|
11978
12006
|
* @detail api
|
|
@@ -12108,6 +12136,14 @@ declare namespace live {
|
|
|
12108
12136
|
* @brief Obtain the playback information of FLV pull streaming.
|
|
12109
12137
|
*/
|
|
12110
12138
|
getFLVStats(): FlvStats;
|
|
12139
|
+
/** {zh}
|
|
12140
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
12141
|
+
* @returns
|
|
12142
|
+
*/
|
|
12143
|
+
/** {en}
|
|
12144
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
12145
|
+
*/
|
|
12146
|
+
getHLSStats(): Stats$0;
|
|
12111
12147
|
}
|
|
12112
12148
|
/** {zh}
|
|
12113
12149
|
* @detail api
|
|
@@ -14439,7 +14439,7 @@ class VePlayerBase {
|
|
|
14439
14439
|
* @brief Retrieve the player SDK version number.
|
|
14440
14440
|
*/
|
|
14441
14441
|
get playerVersion() {
|
|
14442
|
-
return "2.6.
|
|
14442
|
+
return "2.6.2-rc.0";
|
|
14443
14443
|
}
|
|
14444
14444
|
/** {zh}
|
|
14445
14445
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -22806,7 +22806,7 @@ class Logger extends Plugin {
|
|
|
22806
22806
|
device_id: this._deviceId,
|
|
22807
22807
|
error_report_stop: true,
|
|
22808
22808
|
ext: {
|
|
22809
|
-
veplayer_version: "2.6.
|
|
22809
|
+
veplayer_version: "2.6.2-rc.0",
|
|
22810
22810
|
flv_version: "3.0.21-rc.21",
|
|
22811
22811
|
hls_version: "3.0.21-rc.21",
|
|
22812
22812
|
rts_version: "0.2.1-alpha.14"
|
|
@@ -22820,6 +22820,7 @@ function normalizeNumber(value, transform2) {
|
|
|
22820
22820
|
return transform2 ? transform2(value) : value.toString();
|
|
22821
22821
|
}
|
|
22822
22822
|
function getDefaultRow(data) {
|
|
22823
|
+
var _a;
|
|
22823
22824
|
return {
|
|
22824
22825
|
rows: [
|
|
22825
22826
|
{
|
|
@@ -22835,7 +22836,10 @@ function getDefaultRow(data) {
|
|
|
22835
22836
|
{
|
|
22836
22837
|
key: "bitrate",
|
|
22837
22838
|
labelTextKey: "BITRATE",
|
|
22838
|
-
value: normalizeNumber(
|
|
22839
|
+
value: normalizeNumber(
|
|
22840
|
+
data.bitrate,
|
|
22841
|
+
(value) => `${(value / 1e3).toFixed(2)} kbps`
|
|
22842
|
+
)
|
|
22839
22843
|
},
|
|
22840
22844
|
{
|
|
22841
22845
|
key: "gop",
|
|
@@ -22845,7 +22849,7 @@ function getDefaultRow(data) {
|
|
|
22845
22849
|
{
|
|
22846
22850
|
key: "resolution",
|
|
22847
22851
|
labelTextKey: "RESOLUTION",
|
|
22848
|
-
value: `${normalizeNumber(data.
|
|
22852
|
+
value: `${normalizeNumber(data.width)} * ${normalizeNumber(
|
|
22849
22853
|
data.height
|
|
22850
22854
|
)}`
|
|
22851
22855
|
},
|
|
@@ -22857,14 +22861,14 @@ function getDefaultRow(data) {
|
|
|
22857
22861
|
{
|
|
22858
22862
|
key: "bufferEnd",
|
|
22859
22863
|
labelTextKey: "BUFFER_END",
|
|
22860
|
-
value: normalizeNumber(data.bufferEnd)
|
|
22864
|
+
value: normalizeNumber(Number((_a = data.bufferEnd) == null ? void 0 : _a.toFixed(2)))
|
|
22861
22865
|
},
|
|
22862
22866
|
{
|
|
22863
22867
|
key: "currentTime",
|
|
22864
22868
|
labelTextKey: "CURRENT_TIME",
|
|
22865
22869
|
value: normalizeNumber(
|
|
22866
22870
|
data.currentTime,
|
|
22867
|
-
(value) => value.toFixed(
|
|
22871
|
+
(value) => value.toFixed(4) + "s"
|
|
22868
22872
|
)
|
|
22869
22873
|
}
|
|
22870
22874
|
]
|
|
@@ -22877,7 +22881,7 @@ function getSoftDecodeRow(data) {
|
|
|
22877
22881
|
{
|
|
22878
22882
|
key: "decodeEfficiency",
|
|
22879
22883
|
labelTextKey: "DECODE_EFFICIENCY",
|
|
22880
|
-
value: normalizeNumber(data.decodeFps, (value) => value + "frames/s")
|
|
22884
|
+
value: normalizeNumber(data.decodeFps, (value) => value + " frames/s")
|
|
22881
22885
|
},
|
|
22882
22886
|
{
|
|
22883
22887
|
key: "decodeCost",
|
|
@@ -23339,6 +23343,17 @@ class VePlayerLive extends VePlayerBase {
|
|
|
23339
23343
|
var _a, _b, _c;
|
|
23340
23344
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
|
|
23341
23345
|
}
|
|
23346
|
+
/** {zh}
|
|
23347
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
23348
|
+
* @returns
|
|
23349
|
+
*/
|
|
23350
|
+
/** {en}
|
|
23351
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
23352
|
+
*/
|
|
23353
|
+
getHLSStats() {
|
|
23354
|
+
var _a, _b, _c;
|
|
23355
|
+
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
23356
|
+
}
|
|
23342
23357
|
}
|
|
23343
23358
|
async function createLivePlayer(options) {
|
|
23344
23359
|
var _a, _b, _c, _d;
|