@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
|
@@ -2872,7 +2872,7 @@ class Logger extends Plugin$2 {
|
|
|
2872
2872
|
device_id: this._deviceId,
|
|
2873
2873
|
error_report_stop: true,
|
|
2874
2874
|
ext: {
|
|
2875
|
-
veplayer_version: "2.3.
|
|
2875
|
+
veplayer_version: "2.3.0",
|
|
2876
2876
|
flv_version: "3.0.21-rc.21",
|
|
2877
2877
|
hls_version: "3.0.21-rc.21",
|
|
2878
2878
|
rts_version: "0.2.1-alpha.14"
|
|
@@ -2886,6 +2886,7 @@ function normalizeNumber(value, transform) {
|
|
|
2886
2886
|
return transform ? transform(value) : value.toString();
|
|
2887
2887
|
}
|
|
2888
2888
|
function getDefaultRow(data) {
|
|
2889
|
+
var _a;
|
|
2889
2890
|
return {
|
|
2890
2891
|
rows: [
|
|
2891
2892
|
{
|
|
@@ -2901,7 +2902,10 @@ function getDefaultRow(data) {
|
|
|
2901
2902
|
{
|
|
2902
2903
|
key: "bitrate",
|
|
2903
2904
|
labelTextKey: "BITRATE",
|
|
2904
|
-
value: normalizeNumber(
|
|
2905
|
+
value: normalizeNumber(
|
|
2906
|
+
data.bitrate,
|
|
2907
|
+
(value) => `${(value / 1e3).toFixed(2)} kbps`
|
|
2908
|
+
)
|
|
2905
2909
|
},
|
|
2906
2910
|
{
|
|
2907
2911
|
key: "gop",
|
|
@@ -2911,7 +2915,7 @@ function getDefaultRow(data) {
|
|
|
2911
2915
|
{
|
|
2912
2916
|
key: "resolution",
|
|
2913
2917
|
labelTextKey: "RESOLUTION",
|
|
2914
|
-
value: `${normalizeNumber(data.
|
|
2918
|
+
value: `${normalizeNumber(data.width)} * ${normalizeNumber(
|
|
2915
2919
|
data.height
|
|
2916
2920
|
)}`
|
|
2917
2921
|
},
|
|
@@ -2923,14 +2927,14 @@ function getDefaultRow(data) {
|
|
|
2923
2927
|
{
|
|
2924
2928
|
key: "bufferEnd",
|
|
2925
2929
|
labelTextKey: "BUFFER_END",
|
|
2926
|
-
value: normalizeNumber(data.bufferEnd)
|
|
2930
|
+
value: normalizeNumber(Number((_a = data.bufferEnd) == null ? void 0 : _a.toFixed(2)))
|
|
2927
2931
|
},
|
|
2928
2932
|
{
|
|
2929
2933
|
key: "currentTime",
|
|
2930
2934
|
labelTextKey: "CURRENT_TIME",
|
|
2931
2935
|
value: normalizeNumber(
|
|
2932
2936
|
data.currentTime,
|
|
2933
|
-
(value) => value.toFixed(
|
|
2937
|
+
(value) => value.toFixed(4) + "s"
|
|
2934
2938
|
)
|
|
2935
2939
|
}
|
|
2936
2940
|
]
|
|
@@ -2943,7 +2947,7 @@ function getSoftDecodeRow(data) {
|
|
|
2943
2947
|
{
|
|
2944
2948
|
key: "decodeEfficiency",
|
|
2945
2949
|
labelTextKey: "DECODE_EFFICIENCY",
|
|
2946
|
-
value: normalizeNumber(data.decodeFps, (value) => value + "frames/s")
|
|
2950
|
+
value: normalizeNumber(data.decodeFps, (value) => value + " frames/s")
|
|
2947
2951
|
},
|
|
2948
2952
|
{
|
|
2949
2953
|
key: "decodeCost",
|
|
@@ -4805,6 +4809,17 @@ class VePlayerLive extends VePlayerBase {
|
|
|
4805
4809
|
var _a, _b, _c;
|
|
4806
4810
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
|
|
4807
4811
|
}
|
|
4812
|
+
/** {zh}
|
|
4813
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
4814
|
+
* @returns
|
|
4815
|
+
*/
|
|
4816
|
+
/** {en}
|
|
4817
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
4818
|
+
*/
|
|
4819
|
+
getHLSStats() {
|
|
4820
|
+
var _a, _b, _c;
|
|
4821
|
+
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
4822
|
+
}
|
|
4808
4823
|
async updatePlaylist(playlist, target, needUpdateProtocol = true) {
|
|
4809
4824
|
var _a;
|
|
4810
4825
|
if (needUpdateProtocol) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.xgplayer .veplayer-refresh{margin-left:12px}.veplayer-live-panel{position:absolute;z-index:8;display:none;box-sizing:border-box;width:
|
|
1
|
+
.xgplayer .veplayer-refresh{margin-left:12px}.veplayer-live-panel{position:absolute;z-index:8;display:none;box-sizing:border-box;width:-moz-fit-content;width:fit-content;max-width:40%;height:100%;padding:10px;overflow-y:scroll;color:#fff;font-weight:400;font-size:12px;background:rgba(0,0,0,.5);scrollbar-width:none;-ms-overflow-style:none}.veplayer-live-panel::-webkit-scrollbar{display:none}.veplayer-live-panel-row{display:block;overflow:hidden;line-height:20px;white-space:nowrap;text-overflow:ellipsis}.veplayer-live-panel-row-label{display:inline-block;width:70px;color:#c9cdd4}.veplayer-live-panel-row-title{display:inline-block;padding-top:30px}
|