@byteplus/veplayer 1.15.2-rc.1 → 1.15.2-rc.3
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/index.d.ts +25 -27
- package/index.min.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2856,11 +2856,6 @@ export interface IPlayerConfig extends IPlayerOptions {
|
|
|
2856
2856
|
* @default {position: 'controlsRight', index: 0, rotateFullscreen: false, useCssFullscreen: false, target: null, switchCallback: null, disable: false, needBackIcon: false }
|
|
2857
2857
|
*/
|
|
2858
2858
|
fullscreen?: IFullscreenConfig;
|
|
2859
|
-
/**
|
|
2860
|
-
* @brief css全屏配置
|
|
2861
|
-
* @default {position:'controlsRight', index: 1, disable: false,target: null}
|
|
2862
|
-
*/
|
|
2863
|
-
cssFullscreen?: ICSSFullscreenConfig;
|
|
2864
2859
|
/** {zh}
|
|
2865
2860
|
* @breif 是否总是显示清晰度切换控件,即只有一个清晰度时也显示清晰度切换控件
|
|
2866
2861
|
* @default false
|
|
@@ -3266,6 +3261,31 @@ export interface IPlayerConfig extends IPlayerOptions {
|
|
|
3266
3261
|
* @default -
|
|
3267
3262
|
*/
|
|
3268
3263
|
sdkErrorPlugin?: ISdkErrorConfig;
|
|
3264
|
+
/** {zh}
|
|
3265
|
+
* @brief 原生媒体错误(如网络类 code 2/4)自动重试的最大次数,对应 {@link VeErrorOptions.oriErrRetryCount}。
|
|
3266
|
+
* @default 3
|
|
3267
|
+
*/
|
|
3268
|
+
oriErrRetryCount?: number;
|
|
3269
|
+
/** {zh}
|
|
3270
|
+
* @brief 上述重试计数的清零周期(毫秒),超时后重试次数重新统计,对应 {@link VeErrorOptions.oriErrRetryCycle}。
|
|
3271
|
+
* @default 10000
|
|
3272
|
+
*/
|
|
3273
|
+
oriErrRetryCycle?: number;
|
|
3274
|
+
/** {zh}
|
|
3275
|
+
* @brief 是否在原生媒体错误时自动重试拉流,对应 {@link VeErrorOptions.enableOriErrRetry}。
|
|
3276
|
+
* @default true
|
|
3277
|
+
*/
|
|
3278
|
+
enableOriErrRetry?: boolean;
|
|
3279
|
+
/** {zh}
|
|
3280
|
+
* @brief 是否在错误时同步分析网络/流(如 XHR 探测),对应 {@link VeErrorOptions.needSyncAnalyzeError}。
|
|
3281
|
+
* @default true
|
|
3282
|
+
*/
|
|
3283
|
+
needSyncAnalyzeError?: boolean;
|
|
3284
|
+
/** {zh}
|
|
3285
|
+
* @brief 错误分析请求超时时间(毫秒),对应 {@link VeErrorOptions.analyzeTimeout}。
|
|
3286
|
+
* @default 3000
|
|
3287
|
+
*/
|
|
3288
|
+
analyzeTimeout?: number;
|
|
3269
3289
|
/** {zh}
|
|
3270
3290
|
* @brief rtm配置,配置rtm拉流参数
|
|
3271
3291
|
* @notes 传入rtm流url时才生效
|
|
@@ -3771,28 +3791,6 @@ export interface IPIPConfig extends IPluginConfig {
|
|
|
3771
3791
|
*/
|
|
3772
3792
|
docPiPStyle?: ((...arg: any) => string) | string;
|
|
3773
3793
|
}
|
|
3774
|
-
export interface ICSSFullscreenConfig {
|
|
3775
|
-
/** {zh}
|
|
3776
|
-
* @brief 插件DOM挂载位置
|
|
3777
|
-
* @default controlsRight
|
|
3778
|
-
*/
|
|
3779
|
-
position?: POSITIONS;
|
|
3780
|
-
/** {zh}
|
|
3781
|
-
* @brief 插件DOM在挂载点内的排序,默认为1,越小越靠前(若index相同,后实例化的插件会被放置在前面)
|
|
3782
|
-
* @default 1
|
|
3783
|
-
*/
|
|
3784
|
-
index?: number;
|
|
3785
|
-
/** {zh}
|
|
3786
|
-
* @brief 是否禁用
|
|
3787
|
-
* @default true
|
|
3788
|
-
*/
|
|
3789
|
-
disable?: boolean;
|
|
3790
|
-
/**
|
|
3791
|
-
* @brief 自定义网页全屏作用的dom,默认是播放器根节点, 该配置项必须是player.root的父辈节点,使用场景是解决网页全屏下和player.root同级的dom需要显示的场景
|
|
3792
|
-
* @default null
|
|
3793
|
-
*/
|
|
3794
|
-
target?: HTMLElement;
|
|
3795
|
-
}
|
|
3796
3794
|
/** {zh}
|
|
3797
3795
|
* @brief 全屏配置。
|
|
3798
3796
|
* @list Options
|