@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
|
@@ -3115,6 +3115,7 @@ function normalizeNumber(value, transform) {
|
|
|
3115
3115
|
return transform ? transform(value) : value.toString();
|
|
3116
3116
|
}
|
|
3117
3117
|
function getDefaultRow(data) {
|
|
3118
|
+
var _a;
|
|
3118
3119
|
return {
|
|
3119
3120
|
rows: [
|
|
3120
3121
|
{
|
|
@@ -3130,7 +3131,10 @@ function getDefaultRow(data) {
|
|
|
3130
3131
|
{
|
|
3131
3132
|
key: "bitrate",
|
|
3132
3133
|
labelTextKey: "BITRATE",
|
|
3133
|
-
value: normalizeNumber(
|
|
3134
|
+
value: normalizeNumber(
|
|
3135
|
+
data.bitrate,
|
|
3136
|
+
(value) => `${(value / 1e3).toFixed(2)} kbps`
|
|
3137
|
+
)
|
|
3134
3138
|
},
|
|
3135
3139
|
{
|
|
3136
3140
|
key: "gop",
|
|
@@ -3140,7 +3144,7 @@ function getDefaultRow(data) {
|
|
|
3140
3144
|
{
|
|
3141
3145
|
key: "resolution",
|
|
3142
3146
|
labelTextKey: "RESOLUTION",
|
|
3143
|
-
value: `${normalizeNumber(data.
|
|
3147
|
+
value: `${normalizeNumber(data.width)} * ${normalizeNumber(
|
|
3144
3148
|
data.height
|
|
3145
3149
|
)}`
|
|
3146
3150
|
},
|
|
@@ -3152,14 +3156,14 @@ function getDefaultRow(data) {
|
|
|
3152
3156
|
{
|
|
3153
3157
|
key: "bufferEnd",
|
|
3154
3158
|
labelTextKey: "BUFFER_END",
|
|
3155
|
-
value: normalizeNumber(data.bufferEnd)
|
|
3159
|
+
value: normalizeNumber(Number((_a = data.bufferEnd) == null ? void 0 : _a.toFixed(2)))
|
|
3156
3160
|
},
|
|
3157
3161
|
{
|
|
3158
3162
|
key: "currentTime",
|
|
3159
3163
|
labelTextKey: "CURRENT_TIME",
|
|
3160
3164
|
value: normalizeNumber(
|
|
3161
3165
|
data.currentTime,
|
|
3162
|
-
(value) => value.toFixed(
|
|
3166
|
+
(value) => value.toFixed(4) + "s"
|
|
3163
3167
|
)
|
|
3164
3168
|
}
|
|
3165
3169
|
]
|
|
@@ -3172,7 +3176,7 @@ function getSoftDecodeRow(data) {
|
|
|
3172
3176
|
{
|
|
3173
3177
|
key: "decodeEfficiency",
|
|
3174
3178
|
labelTextKey: "DECODE_EFFICIENCY",
|
|
3175
|
-
value: normalizeNumber(data.decodeFps, (value) => value + "frames/s")
|
|
3179
|
+
value: normalizeNumber(data.decodeFps, (value) => value + " frames/s")
|
|
3176
3180
|
},
|
|
3177
3181
|
{
|
|
3178
3182
|
key: "decodeCost",
|
|
@@ -4161,6 +4165,17 @@ class VePlayerLive extends VePlayerBase {
|
|
|
4161
4165
|
var _a, _b, _c;
|
|
4162
4166
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
|
|
4163
4167
|
}
|
|
4168
|
+
/** {zh}
|
|
4169
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
4170
|
+
* @returns
|
|
4171
|
+
*/
|
|
4172
|
+
/** {en}
|
|
4173
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
4174
|
+
*/
|
|
4175
|
+
getHLSStats() {
|
|
4176
|
+
var _a, _b, _c;
|
|
4177
|
+
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
4178
|
+
}
|
|
4164
4179
|
}
|
|
4165
4180
|
async function createLivePlayer(options) {
|
|
4166
4181
|
var _a, _b, _c, _d;
|
|
@@ -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}
|