@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.
Files changed (35) hide show
  1. package/esm/veplayer.biz.live.development.css +2 -1
  2. package/esm/veplayer.biz.live.development.js +21 -6
  3. package/esm/veplayer.biz.live.production.css +1 -1
  4. package/esm/veplayer.biz.live.production.js +1 -1
  5. package/esm/veplayer.d.ts +66 -30
  6. package/esm/veplayer.development.css +2 -1
  7. package/esm/veplayer.development.js +22 -7
  8. package/esm/veplayer.live.d.ts +66 -30
  9. package/esm/veplayer.live.development.css +2 -1
  10. package/esm/veplayer.live.development.js +22 -7
  11. package/esm/veplayer.live.production.css +1 -1
  12. package/esm/veplayer.live.production.js +2 -2
  13. package/esm/veplayer.production.css +1 -1
  14. package/esm/veplayer.production.js +2 -2
  15. package/esm/veplayer.vod.development.js +1 -1
  16. package/esm/veplayer.vod.production.js +1 -1
  17. package/package.json +1 -1
  18. package/umd/veplayer.biz.live.development.css +2 -1
  19. package/umd/veplayer.biz.live.development.js +21 -6
  20. package/umd/veplayer.biz.live.production.css +1 -1
  21. package/umd/veplayer.biz.live.production.js +1 -1
  22. package/umd/veplayer.d.ts +66 -30
  23. package/umd/veplayer.development.css +2 -1
  24. package/umd/veplayer.development.js +22 -7
  25. package/umd/veplayer.live.d.ts +66 -30
  26. package/umd/veplayer.live.development.css +2 -1
  27. package/umd/veplayer.live.development.js +22 -7
  28. package/umd/veplayer.live.production.css +1 -1
  29. package/umd/veplayer.live.production.js +1 -1
  30. package/umd/veplayer.production.css +1 -1
  31. package/umd/veplayer.production.js +1 -1
  32. package/umd/veplayer.vod.development.js +1 -1
  33. package/umd/veplayer.vod.production.js +1 -1
  34. package/veplayer.d.ts +66 -30
  35. package/veplayer.live.d.ts +66 -30
package/umd/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 FlvStats {
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
- * @brief 总共收到的字节数。
6434
+ * @hidden
6437
6435
  */
6438
6436
  /** {en}
6439
- * @brief The total number of bytes received.
6437
+ * @hidden
6440
6438
  */
6441
- totalReceivedByte: number;
6439
+ videoCodec: string;
6442
6440
  /** {zh}
6443
- * @brief 接收所有字节消耗时长。
6441
+ * @brief 视频宽度。
6444
6442
  */
6445
6443
  /** {en}
6446
- * @brief The time consumed for receiving all bytes.
6444
+ * @brief Video wight.
6447
6445
  */
6448
- totalReceivedCost: number;
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
- * @hidden
6460
+ * @brief 总共收到的字节数。
6451
6461
  */
6452
6462
  /** {en}
6453
- * @hidden
6463
+ * @brief The total number of bytes received.
6454
6464
  */
6455
- videoCodec: string;
6465
+ totalReceivedByte: number;
6456
6466
  /** {zh}
6457
- * @brief 视频宽度。
6467
+ * @brief 接收所有字节消耗时长。
6458
6468
  */
6459
6469
  /** {en}
6460
- * @brief Video wight.
6470
+ * @brief The time consumed for receiving all bytes.
6461
6471
  */
6462
- width: number;
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 FlvStats {
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
- * @brief 总共收到的字节数。
12072
+ * @hidden
12057
12073
  */
12058
12074
  /** {en}
12059
- * @brief The total number of bytes received.
12075
+ * @hidden
12060
12076
  */
12061
- totalReceivedByte: number;
12077
+ videoCodec: string;
12062
12078
  /** {zh}
12063
- * @brief 接收所有字节消耗时长。
12079
+ * @brief 视频宽度。
12064
12080
  */
12065
12081
  /** {en}
12066
- * @brief The time consumed for receiving all bytes.
12082
+ * @brief Video wight.
12067
12083
  */
12068
- totalReceivedCost: number;
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
- * @hidden
12098
+ * @brief 总共收到的字节数。
12071
12099
  */
12072
12100
  /** {en}
12073
- * @hidden
12101
+ * @brief The total number of bytes received.
12074
12102
  */
12075
- videoCodec: string;
12103
+ totalReceivedByte: number;
12076
12104
  /** {zh}
12077
- * @brief 视频宽度。
12105
+ * @brief 接收所有字节消耗时长。
12078
12106
  */
12079
12107
  /** {en}
12080
- * @brief Video wight.
12108
+ * @brief The time consumed for receiving all bytes.
12081
12109
  */
12082
- width: number;
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 清晰度唯一标识。
@@ -708,7 +708,8 @@
708
708
  z-index: 8;
709
709
  display: none;
710
710
  box-sizing: border-box;
711
- width: 165px;
711
+ width: fit-content;
712
+ max-width: 40%;
712
713
  height: 100%;
713
714
  padding: 10px;
714
715
  overflow-y: scroll;
@@ -14448,7 +14448,7 @@ var __publicField = (obj, key, value) => {
14448
14448
  * @brief Retrieve the player SDK version number.
14449
14449
  */
14450
14450
  get playerVersion() {
14451
- return "2.7.0-rc.0";
14451
+ return "2.7.0";
14452
14452
  }
14453
14453
  /** {zh}
14454
14454
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -22591,7 +22591,7 @@ var __publicField = (obj, key, value) => {
22591
22591
  device_id: this._deviceId,
22592
22592
  error_report_stop: true,
22593
22593
  ext: {
22594
- veplayer_version: "2.7.0-rc.0",
22594
+ veplayer_version: "2.7.0",
22595
22595
  flv_version: "3.0.21-rc.21",
22596
22596
  hls_version: "3.0.21-rc.21",
22597
22597
  rts_version: "0.2.1-alpha.14"
@@ -22605,6 +22605,7 @@ var __publicField = (obj, key, value) => {
22605
22605
  return transform2 ? transform2(value) : value.toString();
22606
22606
  }
22607
22607
  function getDefaultRow(data) {
22608
+ var _a;
22608
22609
  return {
22609
22610
  rows: [
22610
22611
  {
@@ -22620,7 +22621,10 @@ var __publicField = (obj, key, value) => {
22620
22621
  {
22621
22622
  key: "bitrate",
22622
22623
  labelTextKey: "BITRATE",
22623
- value: normalizeNumber(data.bitrate, (value) => `${value / 1e3} kbps`)
22624
+ value: normalizeNumber(
22625
+ data.bitrate,
22626
+ (value) => `${(value / 1e3).toFixed(2)} kbps`
22627
+ )
22624
22628
  },
22625
22629
  {
22626
22630
  key: "gop",
@@ -22630,7 +22634,7 @@ var __publicField = (obj, key, value) => {
22630
22634
  {
22631
22635
  key: "resolution",
22632
22636
  labelTextKey: "RESOLUTION",
22633
- value: `${normalizeNumber(data.height)} * ${normalizeNumber(
22637
+ value: `${normalizeNumber(data.width)} * ${normalizeNumber(
22634
22638
  data.height
22635
22639
  )}`
22636
22640
  },
@@ -22642,14 +22646,14 @@ var __publicField = (obj, key, value) => {
22642
22646
  {
22643
22647
  key: "bufferEnd",
22644
22648
  labelTextKey: "BUFFER_END",
22645
- value: normalizeNumber(data.bufferEnd)
22649
+ value: normalizeNumber(Number((_a = data.bufferEnd) == null ? void 0 : _a.toFixed(2)))
22646
22650
  },
22647
22651
  {
22648
22652
  key: "currentTime",
22649
22653
  labelTextKey: "CURRENT_TIME",
22650
22654
  value: normalizeNumber(
22651
22655
  data.currentTime,
22652
- (value) => value.toFixed(6) + "s"
22656
+ (value) => value.toFixed(4) + "s"
22653
22657
  )
22654
22658
  }
22655
22659
  ]
@@ -22662,7 +22666,7 @@ var __publicField = (obj, key, value) => {
22662
22666
  {
22663
22667
  key: "decodeEfficiency",
22664
22668
  labelTextKey: "DECODE_EFFICIENCY",
22665
- value: normalizeNumber(data.decodeFps, (value) => value + "frames/s")
22669
+ value: normalizeNumber(data.decodeFps, (value) => value + " frames/s")
22666
22670
  },
22667
22671
  {
22668
22672
  key: "decodeCost",
@@ -23959,6 +23963,17 @@ var __publicField = (obj, key, value) => {
23959
23963
  var _a, _b, _c;
23960
23964
  return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
23961
23965
  }
23966
+ /** {zh}
23967
+ * @brief 获取 HLS 拉流的播放信息。
23968
+ * @returns
23969
+ */
23970
+ /** {en}
23971
+ * @brief Obtain the playback information of HLS pull streaming.
23972
+ */
23973
+ getHLSStats() {
23974
+ var _a, _b, _c;
23975
+ return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
23976
+ }
23962
23977
  async updatePlaylist(playlist, target, needUpdateProtocol = true) {
23963
23978
  var _a;
23964
23979
  if (needUpdateProtocol) {
@@ -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 FlvStats {
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
- * @brief 总共收到的字节数。
6434
+ * @hidden
6437
6435
  */
6438
6436
  /** {en}
6439
- * @brief The total number of bytes received.
6437
+ * @hidden
6440
6438
  */
6441
- totalReceivedByte: number;
6439
+ videoCodec: string;
6442
6440
  /** {zh}
6443
- * @brief 接收所有字节消耗时长。
6441
+ * @brief 视频宽度。
6444
6442
  */
6445
6443
  /** {en}
6446
- * @brief The time consumed for receiving all bytes.
6444
+ * @brief Video wight.
6447
6445
  */
6448
- totalReceivedCost: number;
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
- * @hidden
6460
+ * @brief 总共收到的字节数。
6451
6461
  */
6452
6462
  /** {en}
6453
- * @hidden
6463
+ * @brief The total number of bytes received.
6454
6464
  */
6455
- videoCodec: string;
6465
+ totalReceivedByte: number;
6456
6466
  /** {zh}
6457
- * @brief 视频宽度。
6467
+ * @brief 接收所有字节消耗时长。
6458
6468
  */
6459
6469
  /** {en}
6460
- * @brief Video wight.
6470
+ * @brief The time consumed for receiving all bytes.
6461
6471
  */
6462
- width: number;
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 FlvStats {
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
- * @brief 总共收到的字节数。
12072
+ * @hidden
12057
12073
  */
12058
12074
  /** {en}
12059
- * @brief The total number of bytes received.
12075
+ * @hidden
12060
12076
  */
12061
- totalReceivedByte: number;
12077
+ videoCodec: string;
12062
12078
  /** {zh}
12063
- * @brief 接收所有字节消耗时长。
12079
+ * @brief 视频宽度。
12064
12080
  */
12065
12081
  /** {en}
12066
- * @brief The time consumed for receiving all bytes.
12082
+ * @brief Video wight.
12067
12083
  */
12068
- totalReceivedCost: number;
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
- * @hidden
12098
+ * @brief 总共收到的字节数。
12071
12099
  */
12072
12100
  /** {en}
12073
- * @hidden
12101
+ * @brief The total number of bytes received.
12074
12102
  */
12075
- videoCodec: string;
12103
+ totalReceivedByte: number;
12076
12104
  /** {zh}
12077
- * @brief 视频宽度。
12105
+ * @brief 接收所有字节消耗时长。
12078
12106
  */
12079
12107
  /** {en}
12080
- * @brief Video wight.
12108
+ * @brief The time consumed for receiving all bytes.
12081
12109
  */
12082
- width: number;
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 清晰度唯一标识。
@@ -708,7 +708,8 @@
708
708
  z-index: 8;
709
709
  display: none;
710
710
  box-sizing: border-box;
711
- width: 165px;
711
+ width: fit-content;
712
+ max-width: 40%;
712
713
  height: 100%;
713
714
  padding: 10px;
714
715
  overflow-y: scroll;
@@ -14448,7 +14448,7 @@ var __publicField = (obj, key, value) => {
14448
14448
  * @brief Retrieve the player SDK version number.
14449
14449
  */
14450
14450
  get playerVersion() {
14451
- return "2.7.0-rc.0";
14451
+ return "2.7.0";
14452
14452
  }
14453
14453
  /** {zh}
14454
14454
  * @brief 获取当前播放视频的清晰度唯一标识(definition)。
@@ -22591,7 +22591,7 @@ var __publicField = (obj, key, value) => {
22591
22591
  device_id: this._deviceId,
22592
22592
  error_report_stop: true,
22593
22593
  ext: {
22594
- veplayer_version: "2.7.0-rc.0",
22594
+ veplayer_version: "2.7.0",
22595
22595
  flv_version: "3.0.21-rc.21",
22596
22596
  hls_version: "3.0.21-rc.21",
22597
22597
  rts_version: "0.2.1-alpha.14"
@@ -22605,6 +22605,7 @@ var __publicField = (obj, key, value) => {
22605
22605
  return transform2 ? transform2(value) : value.toString();
22606
22606
  }
22607
22607
  function getDefaultRow(data) {
22608
+ var _a;
22608
22609
  return {
22609
22610
  rows: [
22610
22611
  {
@@ -22620,7 +22621,10 @@ var __publicField = (obj, key, value) => {
22620
22621
  {
22621
22622
  key: "bitrate",
22622
22623
  labelTextKey: "BITRATE",
22623
- value: normalizeNumber(data.bitrate, (value) => `${value / 1e3} kbps`)
22624
+ value: normalizeNumber(
22625
+ data.bitrate,
22626
+ (value) => `${(value / 1e3).toFixed(2)} kbps`
22627
+ )
22624
22628
  },
22625
22629
  {
22626
22630
  key: "gop",
@@ -22630,7 +22634,7 @@ var __publicField = (obj, key, value) => {
22630
22634
  {
22631
22635
  key: "resolution",
22632
22636
  labelTextKey: "RESOLUTION",
22633
- value: `${normalizeNumber(data.height)} * ${normalizeNumber(
22637
+ value: `${normalizeNumber(data.width)} * ${normalizeNumber(
22634
22638
  data.height
22635
22639
  )}`
22636
22640
  },
@@ -22642,14 +22646,14 @@ var __publicField = (obj, key, value) => {
22642
22646
  {
22643
22647
  key: "bufferEnd",
22644
22648
  labelTextKey: "BUFFER_END",
22645
- value: normalizeNumber(data.bufferEnd)
22649
+ value: normalizeNumber(Number((_a = data.bufferEnd) == null ? void 0 : _a.toFixed(2)))
22646
22650
  },
22647
22651
  {
22648
22652
  key: "currentTime",
22649
22653
  labelTextKey: "CURRENT_TIME",
22650
22654
  value: normalizeNumber(
22651
22655
  data.currentTime,
22652
- (value) => value.toFixed(6) + "s"
22656
+ (value) => value.toFixed(4) + "s"
22653
22657
  )
22654
22658
  }
22655
22659
  ]
@@ -22662,7 +22666,7 @@ var __publicField = (obj, key, value) => {
22662
22666
  {
22663
22667
  key: "decodeEfficiency",
22664
22668
  labelTextKey: "DECODE_EFFICIENCY",
22665
- value: normalizeNumber(data.decodeFps, (value) => value + "frames/s")
22669
+ value: normalizeNumber(data.decodeFps, (value) => value + " frames/s")
22666
22670
  },
22667
22671
  {
22668
22672
  key: "decodeCost",
@@ -23959,6 +23963,17 @@ var __publicField = (obj, key, value) => {
23959
23963
  var _a, _b, _c;
23960
23964
  return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
23961
23965
  }
23966
+ /** {zh}
23967
+ * @brief 获取 HLS 拉流的播放信息。
23968
+ * @returns
23969
+ */
23970
+ /** {en}
23971
+ * @brief Obtain the playback information of HLS pull streaming.
23972
+ */
23973
+ getHLSStats() {
23974
+ var _a, _b, _c;
23975
+ return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
23976
+ }
23962
23977
  async updatePlaylist(playlist, target, needUpdateProtocol = true) {
23963
23978
  var _a;
23964
23979
  if (needUpdateProtocol) {