@volcengine/veplayer 2.0.0-rc.1 → 2.0.0-rc.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 +2042 -278
- package/esm/veplayer.biz.live.development.js +26 -5
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +4488 -836
- package/esm/veplayer.development.js +288 -58
- package/esm/veplayer.live.d.ts +4494 -843
- package/esm/veplayer.live.development.js +288 -58
- package/esm/veplayer.live.production.js +4 -4
- package/esm/veplayer.production.js +4 -4
- package/esm/veplayer.vod.d.ts +2042 -278
- package/esm/veplayer.vod.development.js +251 -40
- package/esm/veplayer.vod.production.js +3 -3
- package/package.json +1 -1
- package/umd/index.d.ts +2042 -278
- package/umd/veplayer.biz.live.development.js +26 -5
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +4488 -836
- package/umd/veplayer.development.js +288 -58
- package/umd/veplayer.live.d.ts +4494 -843
- package/umd/veplayer.live.development.js +288 -58
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +2042 -278
- package/umd/veplayer.vod.development.js +251 -40
- package/umd/veplayer.vod.production.js +1 -1
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
const error = window["VePlayer"].error;
|
|
8
8
|
const { VeError } = error;
|
|
9
9
|
var LiveErrorCode = /* @__PURE__ */ ((LiveErrorCode2) => {
|
|
10
|
-
LiveErrorCode2[LiveErrorCode2["INVALID_PARAMETER"] =
|
|
10
|
+
LiveErrorCode2[LiveErrorCode2["INVALID_PARAMETER"] = 210] = "INVALID_PARAMETER";
|
|
11
11
|
return LiveErrorCode2;
|
|
12
12
|
})(LiveErrorCode || {});
|
|
13
13
|
error.Level;
|
|
@@ -18,7 +18,7 @@ const ErrorCode = {
|
|
|
18
18
|
const ERRORS = {
|
|
19
19
|
...error.ERROR_INFO,
|
|
20
20
|
[
|
|
21
|
-
|
|
21
|
+
210
|
|
22
22
|
/* INVALID_PARAMETER */
|
|
23
23
|
]: {
|
|
24
24
|
messageTextKey: "INVALID_PARAMETER",
|
|
@@ -73,10 +73,11 @@ const isRTMSupported = async () => {
|
|
|
73
73
|
const Rtm = await load$1(DynamicModule$1.PluginRtm);
|
|
74
74
|
return Rtm.isSupported();
|
|
75
75
|
};
|
|
76
|
-
const isRTMSupportCodec = async (codec = "h264"
|
|
76
|
+
const isRTMSupportCodec = async (codec = "h264") => {
|
|
77
77
|
const Rtm = await load$1(DynamicModule$1.PluginRtm);
|
|
78
78
|
if (codec === "h264")
|
|
79
|
-
return Rtm.isSupportedH264(
|
|
79
|
+
return Rtm.isSupportedH264();
|
|
80
|
+
return false;
|
|
80
81
|
};
|
|
81
82
|
const util$2 = window["VePlayer"].util;
|
|
82
83
|
const strategy = window["VePlayer"].strategy;
|
|
@@ -2784,7 +2785,7 @@ class Logger extends Plugin$2 {
|
|
|
2784
2785
|
user_id: this._userId,
|
|
2785
2786
|
device_id: this._deviceId,
|
|
2786
2787
|
ext: {
|
|
2787
|
-
veplayer_version: "2.0.0-rc.
|
|
2788
|
+
veplayer_version: "2.0.0-rc.1",
|
|
2788
2789
|
flv_version: "3.0.0-next.23",
|
|
2789
2790
|
hls_version: "3.0.0-next.36-1",
|
|
2790
2791
|
rts_version: "0.2.0-alpha.3"
|
|
@@ -3073,18 +3074,38 @@ const LIVE_DEFAULT_OPTIONS = {
|
|
|
3073
3074
|
};
|
|
3074
3075
|
const LIVE_DEFAULT_PLUGINS = [...DEFAULT_PLUGINS, Refresh, Logger, InfoPanel];
|
|
3075
3076
|
class VePlayerLive extends VePlayerBase {
|
|
3077
|
+
/**
|
|
3078
|
+
* @hidden
|
|
3079
|
+
* @param options
|
|
3080
|
+
*/
|
|
3081
|
+
constructor(options) {
|
|
3082
|
+
super(options);
|
|
3083
|
+
}
|
|
3084
|
+
/** {zh}
|
|
3085
|
+
* @brief 调用此方法开启直播日志上报。
|
|
3086
|
+
*/
|
|
3076
3087
|
openLog() {
|
|
3077
3088
|
var _a;
|
|
3078
3089
|
(_a = this._player.plugins) == null ? void 0 : _a.logger.open();
|
|
3079
3090
|
}
|
|
3091
|
+
/** {zh}
|
|
3092
|
+
* @brief 调用此方法关闭直播日志上报。
|
|
3093
|
+
*/
|
|
3080
3094
|
closeLog() {
|
|
3081
3095
|
var _a;
|
|
3082
3096
|
(_a = this._player.plugins) == null ? void 0 : _a.logger.close();
|
|
3083
3097
|
}
|
|
3098
|
+
/** {zh}
|
|
3099
|
+
* @brief 调用此方法将打开直播信息面板,面板将展示拉流格式、帧率、码率、GOP、视频分辨率、编码方式、Buffer 水位、播放进度等基础信息。如果当前是软解,还会显示软解解码效率和解码消耗。
|
|
3100
|
+
*/
|
|
3084
3101
|
openInfoPanel() {
|
|
3085
3102
|
var _a;
|
|
3086
3103
|
(_a = this._player.plugins) == null ? void 0 : _a.infopanel.open();
|
|
3087
3104
|
}
|
|
3105
|
+
/** {zh}
|
|
3106
|
+
* @brief 调用此方法关闭直播信息面板。
|
|
3107
|
+
*
|
|
3108
|
+
*/
|
|
3088
3109
|
closeInfoPanel() {
|
|
3089
3110
|
var _a;
|
|
3090
3111
|
(_a = this._player.plugins) == null ? void 0 : _a.infopanel.close();
|