@volcengine/veplayer 2.7.0-rc.0 → 2.7.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 +21 -6
- 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 +21 -6
- 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
|
@@ -6324,14 +6324,12 @@ interface StatsSnapShoot {
|
|
|
6324
6324
|
/** {zh}
|
|
6325
6325
|
* @list option
|
|
6326
6326
|
* @kind property
|
|
6327
|
-
* @brief FLV 直播流播放信息。
|
|
6328
6327
|
*/
|
|
6329
6328
|
/** {en}
|
|
6330
6329
|
* @list option
|
|
6331
6330
|
* @kind property
|
|
6332
|
-
* @brief FLV live stream information.
|
|
6333
6331
|
*/
|
|
6334
|
-
interface
|
|
6332
|
+
interface Stats$0 {
|
|
6335
6333
|
/** {zh}
|
|
6336
6334
|
* @brief 音频格式。
|
|
6337
6335
|
* @hidden
|
|
@@ -6433,33 +6431,45 @@ interface FlvStats {
|
|
|
6433
6431
|
*/
|
|
6434
6432
|
samplerate: number;
|
|
6435
6433
|
/** {zh}
|
|
6436
|
-
* @
|
|
6434
|
+
* @hidden
|
|
6437
6435
|
*/
|
|
6438
6436
|
/** {en}
|
|
6439
|
-
* @
|
|
6437
|
+
* @hidden
|
|
6440
6438
|
*/
|
|
6441
|
-
|
|
6439
|
+
videoCodec: string;
|
|
6442
6440
|
/** {zh}
|
|
6443
|
-
* @brief
|
|
6441
|
+
* @brief 视频宽度。
|
|
6444
6442
|
*/
|
|
6445
6443
|
/** {en}
|
|
6446
|
-
* @brief
|
|
6444
|
+
* @brief Video wight.
|
|
6447
6445
|
*/
|
|
6448
|
-
|
|
6446
|
+
width: number;
|
|
6447
|
+
}
|
|
6448
|
+
/** {zh}
|
|
6449
|
+
* @list option
|
|
6450
|
+
* @kind property
|
|
6451
|
+
* @brief FLV 直播流播放信息。
|
|
6452
|
+
*/
|
|
6453
|
+
/** {en}
|
|
6454
|
+
* @list option
|
|
6455
|
+
* @kind property
|
|
6456
|
+
* @brief FLV live stream information.
|
|
6457
|
+
*/
|
|
6458
|
+
interface FlvStats extends Stats$0 {
|
|
6449
6459
|
/** {zh}
|
|
6450
|
-
* @
|
|
6460
|
+
* @brief 总共收到的字节数。
|
|
6451
6461
|
*/
|
|
6452
6462
|
/** {en}
|
|
6453
|
-
* @
|
|
6463
|
+
* @brief The total number of bytes received.
|
|
6454
6464
|
*/
|
|
6455
|
-
|
|
6465
|
+
totalReceivedByte: number;
|
|
6456
6466
|
/** {zh}
|
|
6457
|
-
* @brief
|
|
6467
|
+
* @brief 接收所有字节消耗时长。
|
|
6458
6468
|
*/
|
|
6459
6469
|
/** {en}
|
|
6460
|
-
* @brief
|
|
6470
|
+
* @brief The time consumed for receiving all bytes.
|
|
6461
6471
|
*/
|
|
6462
|
-
|
|
6472
|
+
totalReceivedCost: number;
|
|
6463
6473
|
}
|
|
6464
6474
|
/** {zh}
|
|
6465
6475
|
* @detail api
|
|
@@ -6602,6 +6612,14 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
6602
6612
|
* @brief Obtain the playback information of FLV pull streaming.
|
|
6603
6613
|
*/
|
|
6604
6614
|
getFLVStats(): FlvStats;
|
|
6615
|
+
/** {zh}
|
|
6616
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
6617
|
+
* @returns
|
|
6618
|
+
*/
|
|
6619
|
+
/** {en}
|
|
6620
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
6621
|
+
*/
|
|
6622
|
+
getHLSStats(): Stats$0;
|
|
6605
6623
|
updatePlaylist(playlist: ExposedSource[], target?: string | {
|
|
6606
6624
|
/** {zh}
|
|
6607
6625
|
* @brief 清晰度唯一标识。
|
|
@@ -11944,14 +11962,12 @@ declare namespace live {
|
|
|
11944
11962
|
/** {zh}
|
|
11945
11963
|
* @list option
|
|
11946
11964
|
* @kind property
|
|
11947
|
-
* @brief FLV 直播流播放信息。
|
|
11948
11965
|
*/
|
|
11949
11966
|
/** {en}
|
|
11950
11967
|
* @list option
|
|
11951
11968
|
* @kind property
|
|
11952
|
-
* @brief FLV live stream information.
|
|
11953
11969
|
*/
|
|
11954
|
-
interface
|
|
11970
|
+
interface Stats$0 {
|
|
11955
11971
|
/** {zh}
|
|
11956
11972
|
* @brief 音频格式。
|
|
11957
11973
|
* @hidden
|
|
@@ -12053,33 +12069,45 @@ declare namespace live {
|
|
|
12053
12069
|
*/
|
|
12054
12070
|
samplerate: number;
|
|
12055
12071
|
/** {zh}
|
|
12056
|
-
* @
|
|
12072
|
+
* @hidden
|
|
12057
12073
|
*/
|
|
12058
12074
|
/** {en}
|
|
12059
|
-
* @
|
|
12075
|
+
* @hidden
|
|
12060
12076
|
*/
|
|
12061
|
-
|
|
12077
|
+
videoCodec: string;
|
|
12062
12078
|
/** {zh}
|
|
12063
|
-
* @brief
|
|
12079
|
+
* @brief 视频宽度。
|
|
12064
12080
|
*/
|
|
12065
12081
|
/** {en}
|
|
12066
|
-
* @brief
|
|
12082
|
+
* @brief Video wight.
|
|
12067
12083
|
*/
|
|
12068
|
-
|
|
12084
|
+
width: number;
|
|
12085
|
+
}
|
|
12086
|
+
/** {zh}
|
|
12087
|
+
* @list option
|
|
12088
|
+
* @kind property
|
|
12089
|
+
* @brief FLV 直播流播放信息。
|
|
12090
|
+
*/
|
|
12091
|
+
/** {en}
|
|
12092
|
+
* @list option
|
|
12093
|
+
* @kind property
|
|
12094
|
+
* @brief FLV live stream information.
|
|
12095
|
+
*/
|
|
12096
|
+
interface FlvStats extends Stats$0 {
|
|
12069
12097
|
/** {zh}
|
|
12070
|
-
* @
|
|
12098
|
+
* @brief 总共收到的字节数。
|
|
12071
12099
|
*/
|
|
12072
12100
|
/** {en}
|
|
12073
|
-
* @
|
|
12101
|
+
* @brief The total number of bytes received.
|
|
12074
12102
|
*/
|
|
12075
|
-
|
|
12103
|
+
totalReceivedByte: number;
|
|
12076
12104
|
/** {zh}
|
|
12077
|
-
* @brief
|
|
12105
|
+
* @brief 接收所有字节消耗时长。
|
|
12078
12106
|
*/
|
|
12079
12107
|
/** {en}
|
|
12080
|
-
* @brief
|
|
12108
|
+
* @brief The time consumed for receiving all bytes.
|
|
12081
12109
|
*/
|
|
12082
|
-
|
|
12110
|
+
totalReceivedCost: number;
|
|
12083
12111
|
}
|
|
12084
12112
|
/** {zh}
|
|
12085
12113
|
* @detail api
|
|
@@ -12222,6 +12250,14 @@ declare namespace live {
|
|
|
12222
12250
|
* @brief Obtain the playback information of FLV pull streaming.
|
|
12223
12251
|
*/
|
|
12224
12252
|
getFLVStats(): FlvStats;
|
|
12253
|
+
/** {zh}
|
|
12254
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
12255
|
+
* @returns
|
|
12256
|
+
*/
|
|
12257
|
+
/** {en}
|
|
12258
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
12259
|
+
*/
|
|
12260
|
+
getHLSStats(): Stats$0;
|
|
12225
12261
|
updatePlaylist(playlist: ExposedSource[], target?: string | {
|
|
12226
12262
|
/** {zh}
|
|
12227
12263
|
* @brief 清晰度唯一标识。
|
|
@@ -14444,7 +14444,7 @@ class VePlayerBase {
|
|
|
14444
14444
|
* @brief Retrieve the player SDK version number.
|
|
14445
14445
|
*/
|
|
14446
14446
|
get playerVersion() {
|
|
14447
|
-
return "2.7.0
|
|
14447
|
+
return "2.7.0";
|
|
14448
14448
|
}
|
|
14449
14449
|
/** {zh}
|
|
14450
14450
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -22587,7 +22587,7 @@ class Logger extends Plugin {
|
|
|
22587
22587
|
device_id: this._deviceId,
|
|
22588
22588
|
error_report_stop: true,
|
|
22589
22589
|
ext: {
|
|
22590
|
-
veplayer_version: "2.7.0
|
|
22590
|
+
veplayer_version: "2.7.0",
|
|
22591
22591
|
flv_version: "3.0.21-rc.21",
|
|
22592
22592
|
hls_version: "3.0.21-rc.21",
|
|
22593
22593
|
rts_version: "0.2.1-alpha.14"
|
|
@@ -22601,6 +22601,7 @@ function normalizeNumber(value, transform2) {
|
|
|
22601
22601
|
return transform2 ? transform2(value) : value.toString();
|
|
22602
22602
|
}
|
|
22603
22603
|
function getDefaultRow(data) {
|
|
22604
|
+
var _a;
|
|
22604
22605
|
return {
|
|
22605
22606
|
rows: [
|
|
22606
22607
|
{
|
|
@@ -22616,7 +22617,10 @@ function getDefaultRow(data) {
|
|
|
22616
22617
|
{
|
|
22617
22618
|
key: "bitrate",
|
|
22618
22619
|
labelTextKey: "BITRATE",
|
|
22619
|
-
value: normalizeNumber(
|
|
22620
|
+
value: normalizeNumber(
|
|
22621
|
+
data.bitrate,
|
|
22622
|
+
(value) => `${(value / 1e3).toFixed(2)} kbps`
|
|
22623
|
+
)
|
|
22620
22624
|
},
|
|
22621
22625
|
{
|
|
22622
22626
|
key: "gop",
|
|
@@ -22626,7 +22630,7 @@ function getDefaultRow(data) {
|
|
|
22626
22630
|
{
|
|
22627
22631
|
key: "resolution",
|
|
22628
22632
|
labelTextKey: "RESOLUTION",
|
|
22629
|
-
value: `${normalizeNumber(data.
|
|
22633
|
+
value: `${normalizeNumber(data.width)} * ${normalizeNumber(
|
|
22630
22634
|
data.height
|
|
22631
22635
|
)}`
|
|
22632
22636
|
},
|
|
@@ -22638,14 +22642,14 @@ function getDefaultRow(data) {
|
|
|
22638
22642
|
{
|
|
22639
22643
|
key: "bufferEnd",
|
|
22640
22644
|
labelTextKey: "BUFFER_END",
|
|
22641
|
-
value: normalizeNumber(data.bufferEnd)
|
|
22645
|
+
value: normalizeNumber(Number((_a = data.bufferEnd) == null ? void 0 : _a.toFixed(2)))
|
|
22642
22646
|
},
|
|
22643
22647
|
{
|
|
22644
22648
|
key: "currentTime",
|
|
22645
22649
|
labelTextKey: "CURRENT_TIME",
|
|
22646
22650
|
value: normalizeNumber(
|
|
22647
22651
|
data.currentTime,
|
|
22648
|
-
(value) => value.toFixed(
|
|
22652
|
+
(value) => value.toFixed(4) + "s"
|
|
22649
22653
|
)
|
|
22650
22654
|
}
|
|
22651
22655
|
]
|
|
@@ -22658,7 +22662,7 @@ function getSoftDecodeRow(data) {
|
|
|
22658
22662
|
{
|
|
22659
22663
|
key: "decodeEfficiency",
|
|
22660
22664
|
labelTextKey: "DECODE_EFFICIENCY",
|
|
22661
|
-
value: normalizeNumber(data.decodeFps, (value) => value + "frames/s")
|
|
22665
|
+
value: normalizeNumber(data.decodeFps, (value) => value + " frames/s")
|
|
22662
22666
|
},
|
|
22663
22667
|
{
|
|
22664
22668
|
key: "decodeCost",
|
|
@@ -23955,6 +23959,17 @@ class VePlayerLive extends VePlayerBase {
|
|
|
23955
23959
|
var _a, _b, _c;
|
|
23956
23960
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
|
|
23957
23961
|
}
|
|
23962
|
+
/** {zh}
|
|
23963
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
23964
|
+
* @returns
|
|
23965
|
+
*/
|
|
23966
|
+
/** {en}
|
|
23967
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
23968
|
+
*/
|
|
23969
|
+
getHLSStats() {
|
|
23970
|
+
var _a, _b, _c;
|
|
23971
|
+
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
23972
|
+
}
|
|
23958
23973
|
async updatePlaylist(playlist, target, needUpdateProtocol = true) {
|
|
23959
23974
|
var _a;
|
|
23960
23975
|
if (needUpdateProtocol) {
|
package/esm/veplayer.live.d.ts
CHANGED
|
@@ -6324,14 +6324,12 @@ interface StatsSnapShoot {
|
|
|
6324
6324
|
/** {zh}
|
|
6325
6325
|
* @list option
|
|
6326
6326
|
* @kind property
|
|
6327
|
-
* @brief FLV 直播流播放信息。
|
|
6328
6327
|
*/
|
|
6329
6328
|
/** {en}
|
|
6330
6329
|
* @list option
|
|
6331
6330
|
* @kind property
|
|
6332
|
-
* @brief FLV live stream information.
|
|
6333
6331
|
*/
|
|
6334
|
-
interface
|
|
6332
|
+
interface Stats$0 {
|
|
6335
6333
|
/** {zh}
|
|
6336
6334
|
* @brief 音频格式。
|
|
6337
6335
|
* @hidden
|
|
@@ -6433,33 +6431,45 @@ interface FlvStats {
|
|
|
6433
6431
|
*/
|
|
6434
6432
|
samplerate: number;
|
|
6435
6433
|
/** {zh}
|
|
6436
|
-
* @
|
|
6434
|
+
* @hidden
|
|
6437
6435
|
*/
|
|
6438
6436
|
/** {en}
|
|
6439
|
-
* @
|
|
6437
|
+
* @hidden
|
|
6440
6438
|
*/
|
|
6441
|
-
|
|
6439
|
+
videoCodec: string;
|
|
6442
6440
|
/** {zh}
|
|
6443
|
-
* @brief
|
|
6441
|
+
* @brief 视频宽度。
|
|
6444
6442
|
*/
|
|
6445
6443
|
/** {en}
|
|
6446
|
-
* @brief
|
|
6444
|
+
* @brief Video wight.
|
|
6447
6445
|
*/
|
|
6448
|
-
|
|
6446
|
+
width: number;
|
|
6447
|
+
}
|
|
6448
|
+
/** {zh}
|
|
6449
|
+
* @list option
|
|
6450
|
+
* @kind property
|
|
6451
|
+
* @brief FLV 直播流播放信息。
|
|
6452
|
+
*/
|
|
6453
|
+
/** {en}
|
|
6454
|
+
* @list option
|
|
6455
|
+
* @kind property
|
|
6456
|
+
* @brief FLV live stream information.
|
|
6457
|
+
*/
|
|
6458
|
+
interface FlvStats extends Stats$0 {
|
|
6449
6459
|
/** {zh}
|
|
6450
|
-
* @
|
|
6460
|
+
* @brief 总共收到的字节数。
|
|
6451
6461
|
*/
|
|
6452
6462
|
/** {en}
|
|
6453
|
-
* @
|
|
6463
|
+
* @brief The total number of bytes received.
|
|
6454
6464
|
*/
|
|
6455
|
-
|
|
6465
|
+
totalReceivedByte: number;
|
|
6456
6466
|
/** {zh}
|
|
6457
|
-
* @brief
|
|
6467
|
+
* @brief 接收所有字节消耗时长。
|
|
6458
6468
|
*/
|
|
6459
6469
|
/** {en}
|
|
6460
|
-
* @brief
|
|
6470
|
+
* @brief The time consumed for receiving all bytes.
|
|
6461
6471
|
*/
|
|
6462
|
-
|
|
6472
|
+
totalReceivedCost: number;
|
|
6463
6473
|
}
|
|
6464
6474
|
/** {zh}
|
|
6465
6475
|
* @detail api
|
|
@@ -6602,6 +6612,14 @@ declare class VePlayerLive extends VePlayerBase {
|
|
|
6602
6612
|
* @brief Obtain the playback information of FLV pull streaming.
|
|
6603
6613
|
*/
|
|
6604
6614
|
getFLVStats(): FlvStats;
|
|
6615
|
+
/** {zh}
|
|
6616
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
6617
|
+
* @returns
|
|
6618
|
+
*/
|
|
6619
|
+
/** {en}
|
|
6620
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
6621
|
+
*/
|
|
6622
|
+
getHLSStats(): Stats$0;
|
|
6605
6623
|
updatePlaylist(playlist: ExposedSource[], target?: string | {
|
|
6606
6624
|
/** {zh}
|
|
6607
6625
|
* @brief 清晰度唯一标识。
|
|
@@ -11944,14 +11962,12 @@ declare namespace live {
|
|
|
11944
11962
|
/** {zh}
|
|
11945
11963
|
* @list option
|
|
11946
11964
|
* @kind property
|
|
11947
|
-
* @brief FLV 直播流播放信息。
|
|
11948
11965
|
*/
|
|
11949
11966
|
/** {en}
|
|
11950
11967
|
* @list option
|
|
11951
11968
|
* @kind property
|
|
11952
|
-
* @brief FLV live stream information.
|
|
11953
11969
|
*/
|
|
11954
|
-
interface
|
|
11970
|
+
interface Stats$0 {
|
|
11955
11971
|
/** {zh}
|
|
11956
11972
|
* @brief 音频格式。
|
|
11957
11973
|
* @hidden
|
|
@@ -12053,33 +12069,45 @@ declare namespace live {
|
|
|
12053
12069
|
*/
|
|
12054
12070
|
samplerate: number;
|
|
12055
12071
|
/** {zh}
|
|
12056
|
-
* @
|
|
12072
|
+
* @hidden
|
|
12057
12073
|
*/
|
|
12058
12074
|
/** {en}
|
|
12059
|
-
* @
|
|
12075
|
+
* @hidden
|
|
12060
12076
|
*/
|
|
12061
|
-
|
|
12077
|
+
videoCodec: string;
|
|
12062
12078
|
/** {zh}
|
|
12063
|
-
* @brief
|
|
12079
|
+
* @brief 视频宽度。
|
|
12064
12080
|
*/
|
|
12065
12081
|
/** {en}
|
|
12066
|
-
* @brief
|
|
12082
|
+
* @brief Video wight.
|
|
12067
12083
|
*/
|
|
12068
|
-
|
|
12084
|
+
width: number;
|
|
12085
|
+
}
|
|
12086
|
+
/** {zh}
|
|
12087
|
+
* @list option
|
|
12088
|
+
* @kind property
|
|
12089
|
+
* @brief FLV 直播流播放信息。
|
|
12090
|
+
*/
|
|
12091
|
+
/** {en}
|
|
12092
|
+
* @list option
|
|
12093
|
+
* @kind property
|
|
12094
|
+
* @brief FLV live stream information.
|
|
12095
|
+
*/
|
|
12096
|
+
interface FlvStats extends Stats$0 {
|
|
12069
12097
|
/** {zh}
|
|
12070
|
-
* @
|
|
12098
|
+
* @brief 总共收到的字节数。
|
|
12071
12099
|
*/
|
|
12072
12100
|
/** {en}
|
|
12073
|
-
* @
|
|
12101
|
+
* @brief The total number of bytes received.
|
|
12074
12102
|
*/
|
|
12075
|
-
|
|
12103
|
+
totalReceivedByte: number;
|
|
12076
12104
|
/** {zh}
|
|
12077
|
-
* @brief
|
|
12105
|
+
* @brief 接收所有字节消耗时长。
|
|
12078
12106
|
*/
|
|
12079
12107
|
/** {en}
|
|
12080
|
-
* @brief
|
|
12108
|
+
* @brief The time consumed for receiving all bytes.
|
|
12081
12109
|
*/
|
|
12082
|
-
|
|
12110
|
+
totalReceivedCost: number;
|
|
12083
12111
|
}
|
|
12084
12112
|
/** {zh}
|
|
12085
12113
|
* @detail api
|
|
@@ -12222,6 +12250,14 @@ declare namespace live {
|
|
|
12222
12250
|
* @brief Obtain the playback information of FLV pull streaming.
|
|
12223
12251
|
*/
|
|
12224
12252
|
getFLVStats(): FlvStats;
|
|
12253
|
+
/** {zh}
|
|
12254
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
12255
|
+
* @returns
|
|
12256
|
+
*/
|
|
12257
|
+
/** {en}
|
|
12258
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
12259
|
+
*/
|
|
12260
|
+
getHLSStats(): Stats$0;
|
|
12225
12261
|
updatePlaylist(playlist: ExposedSource[], target?: string | {
|
|
12226
12262
|
/** {zh}
|
|
12227
12263
|
* @brief 清晰度唯一标识。
|
|
@@ -14444,7 +14444,7 @@ class VePlayerBase {
|
|
|
14444
14444
|
* @brief Retrieve the player SDK version number.
|
|
14445
14445
|
*/
|
|
14446
14446
|
get playerVersion() {
|
|
14447
|
-
return "2.7.0
|
|
14447
|
+
return "2.7.0";
|
|
14448
14448
|
}
|
|
14449
14449
|
/** {zh}
|
|
14450
14450
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -22587,7 +22587,7 @@ class Logger extends Plugin {
|
|
|
22587
22587
|
device_id: this._deviceId,
|
|
22588
22588
|
error_report_stop: true,
|
|
22589
22589
|
ext: {
|
|
22590
|
-
veplayer_version: "2.7.0
|
|
22590
|
+
veplayer_version: "2.7.0",
|
|
22591
22591
|
flv_version: "3.0.21-rc.21",
|
|
22592
22592
|
hls_version: "3.0.21-rc.21",
|
|
22593
22593
|
rts_version: "0.2.1-alpha.14"
|
|
@@ -22601,6 +22601,7 @@ function normalizeNumber(value, transform2) {
|
|
|
22601
22601
|
return transform2 ? transform2(value) : value.toString();
|
|
22602
22602
|
}
|
|
22603
22603
|
function getDefaultRow(data) {
|
|
22604
|
+
var _a;
|
|
22604
22605
|
return {
|
|
22605
22606
|
rows: [
|
|
22606
22607
|
{
|
|
@@ -22616,7 +22617,10 @@ function getDefaultRow(data) {
|
|
|
22616
22617
|
{
|
|
22617
22618
|
key: "bitrate",
|
|
22618
22619
|
labelTextKey: "BITRATE",
|
|
22619
|
-
value: normalizeNumber(
|
|
22620
|
+
value: normalizeNumber(
|
|
22621
|
+
data.bitrate,
|
|
22622
|
+
(value) => `${(value / 1e3).toFixed(2)} kbps`
|
|
22623
|
+
)
|
|
22620
22624
|
},
|
|
22621
22625
|
{
|
|
22622
22626
|
key: "gop",
|
|
@@ -22626,7 +22630,7 @@ function getDefaultRow(data) {
|
|
|
22626
22630
|
{
|
|
22627
22631
|
key: "resolution",
|
|
22628
22632
|
labelTextKey: "RESOLUTION",
|
|
22629
|
-
value: `${normalizeNumber(data.
|
|
22633
|
+
value: `${normalizeNumber(data.width)} * ${normalizeNumber(
|
|
22630
22634
|
data.height
|
|
22631
22635
|
)}`
|
|
22632
22636
|
},
|
|
@@ -22638,14 +22642,14 @@ function getDefaultRow(data) {
|
|
|
22638
22642
|
{
|
|
22639
22643
|
key: "bufferEnd",
|
|
22640
22644
|
labelTextKey: "BUFFER_END",
|
|
22641
|
-
value: normalizeNumber(data.bufferEnd)
|
|
22645
|
+
value: normalizeNumber(Number((_a = data.bufferEnd) == null ? void 0 : _a.toFixed(2)))
|
|
22642
22646
|
},
|
|
22643
22647
|
{
|
|
22644
22648
|
key: "currentTime",
|
|
22645
22649
|
labelTextKey: "CURRENT_TIME",
|
|
22646
22650
|
value: normalizeNumber(
|
|
22647
22651
|
data.currentTime,
|
|
22648
|
-
(value) => value.toFixed(
|
|
22652
|
+
(value) => value.toFixed(4) + "s"
|
|
22649
22653
|
)
|
|
22650
22654
|
}
|
|
22651
22655
|
]
|
|
@@ -22658,7 +22662,7 @@ function getSoftDecodeRow(data) {
|
|
|
22658
22662
|
{
|
|
22659
22663
|
key: "decodeEfficiency",
|
|
22660
22664
|
labelTextKey: "DECODE_EFFICIENCY",
|
|
22661
|
-
value: normalizeNumber(data.decodeFps, (value) => value + "frames/s")
|
|
22665
|
+
value: normalizeNumber(data.decodeFps, (value) => value + " frames/s")
|
|
22662
22666
|
},
|
|
22663
22667
|
{
|
|
22664
22668
|
key: "decodeCost",
|
|
@@ -23955,6 +23959,17 @@ class VePlayerLive extends VePlayerBase {
|
|
|
23955
23959
|
var _a, _b, _c;
|
|
23956
23960
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
|
|
23957
23961
|
}
|
|
23962
|
+
/** {zh}
|
|
23963
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
23964
|
+
* @returns
|
|
23965
|
+
*/
|
|
23966
|
+
/** {en}
|
|
23967
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
23968
|
+
*/
|
|
23969
|
+
getHLSStats() {
|
|
23970
|
+
var _a, _b, _c;
|
|
23971
|
+
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
23972
|
+
}
|
|
23958
23973
|
async updatePlaylist(playlist, target, needUpdateProtocol = true) {
|
|
23959
23974
|
var _a;
|
|
23960
23975
|
if (needUpdateProtocol) {
|