@volcengine/veplayer 2.6.1-rc.1 → 2.6.2
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/index.d.ts +25 -100
- package/esm/veplayer.biz.live.development.css +2 -1
- package/esm/veplayer.biz.live.development.js +27 -6
- package/esm/veplayer.biz.live.production.css +1 -1
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +147 -203
- package/esm/veplayer.development.css +2 -1
- package/esm/veplayer.development.js +29 -8
- package/esm/veplayer.live.d.ts +147 -203
- package/esm/veplayer.live.development.css +2 -1
- package/esm/veplayer.live.development.js +29 -8
- 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.d.ts +25 -100
- package/esm/veplayer.vod.development.js +2 -2
- package/esm/veplayer.vod.production.js +1 -1
- package/package.json +1 -1
- package/umd/index.d.ts +25 -100
- package/umd/veplayer.biz.live.development.css +2 -1
- package/umd/veplayer.biz.live.development.js +27 -6
- package/umd/veplayer.biz.live.production.css +1 -1
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +147 -203
- package/umd/veplayer.development.css +2 -1
- package/umd/veplayer.development.js +29 -8
- package/umd/veplayer.live.d.ts +147 -203
- package/umd/veplayer.live.development.css +2 -1
- package/umd/veplayer.live.development.js +29 -8
- 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.d.ts +25 -100
- package/umd/veplayer.vod.development.js +2 -2
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +147 -203
- package/veplayer.live.d.ts +147 -203
- package/veplayer.vod.d.ts +25 -100
|
@@ -3101,7 +3101,7 @@ class Logger extends Plugin$2 {
|
|
|
3101
3101
|
device_id: this._deviceId,
|
|
3102
3102
|
error_report_stop: true,
|
|
3103
3103
|
ext: {
|
|
3104
|
-
veplayer_version: "2.3.
|
|
3104
|
+
veplayer_version: "2.3.0",
|
|
3105
3105
|
flv_version: "3.0.21-rc.21",
|
|
3106
3106
|
hls_version: "3.0.21-rc.21",
|
|
3107
3107
|
rts_version: "0.2.1-alpha.14"
|
|
@@ -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",
|
|
@@ -4009,6 +4013,12 @@ class VePlayerLive extends VePlayerBase {
|
|
|
4009
4013
|
}
|
|
4010
4014
|
return time;
|
|
4011
4015
|
}
|
|
4016
|
+
/** {en}
|
|
4017
|
+
* @hidden
|
|
4018
|
+
*/
|
|
4019
|
+
/** {zh}
|
|
4020
|
+
* @hidden
|
|
4021
|
+
*/
|
|
4012
4022
|
get ad() {
|
|
4013
4023
|
var _a, _b;
|
|
4014
4024
|
return (_b = (_a = this._player.plugins) == null ? void 0 : _a.ad) == null ? void 0 : _b.adManager;
|
|
@@ -4161,6 +4171,17 @@ class VePlayerLive extends VePlayerBase {
|
|
|
4161
4171
|
var _a, _b, _c;
|
|
4162
4172
|
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.flv) == null ? void 0 : _c.getStats();
|
|
4163
4173
|
}
|
|
4174
|
+
/** {zh}
|
|
4175
|
+
* @brief 获取 HLS 拉流的播放信息。
|
|
4176
|
+
* @returns
|
|
4177
|
+
*/
|
|
4178
|
+
/** {en}
|
|
4179
|
+
* @brief Obtain the playback information of HLS pull streaming.
|
|
4180
|
+
*/
|
|
4181
|
+
getHLSStats() {
|
|
4182
|
+
var _a, _b, _c;
|
|
4183
|
+
return (_c = (_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.hls) == null ? void 0 : _c.getStats();
|
|
4184
|
+
}
|
|
4164
4185
|
}
|
|
4165
4186
|
async function createLivePlayer(options) {
|
|
4166
4187
|
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}
|