@volcengine/veplayer 1.15.3-rc.6 → 1.15.3-rc.8
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 -4
- package/index.min.js +2 -2
- package/package.json +1 -1
- package/plugin/XGVideo.js +2 -1
package/index.d.ts
CHANGED
|
@@ -3261,6 +3261,31 @@ export interface IPlayerConfig extends IPlayerOptions {
|
|
|
3261
3261
|
* @default -
|
|
3262
3262
|
*/
|
|
3263
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;
|
|
3264
3289
|
/** {zh}
|
|
3265
3290
|
* @brief rtm配置,配置rtm拉流参数
|
|
3266
3291
|
* @notes 传入rtm流url时才生效
|
|
@@ -4955,10 +4980,6 @@ declare class VePlayer {
|
|
|
4955
4980
|
* @param list 待预加载视频列表,详情见{@link IPreloadStream[]}
|
|
4956
4981
|
*/
|
|
4957
4982
|
static setPreloadList(list: IPreloadStream[]): Promise<void>;
|
|
4958
|
-
/** {zh}
|
|
4959
|
-
* @brief 是否支持iOS的MMS
|
|
4960
|
-
*/
|
|
4961
|
-
static isMMSSupported: typeof isMMSSupported;
|
|
4962
4983
|
/**
|
|
4963
4984
|
* @hidden
|
|
4964
4985
|
* @param codec
|