@volcengine/veplayer 1.15.3-rc.25 → 1.15.3-rc.27
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 +10 -1
- package/index.min.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -710,6 +710,10 @@ export declare type IAutoSubtitleFormatterResult = string | number | boolean | n
|
|
|
710
710
|
visible?: boolean;
|
|
711
711
|
/** 排序权重,值越小越靠前。未指定时保持原始顺序。 */
|
|
712
712
|
order?: number;
|
|
713
|
+
/** 是否为默认选中的字幕。 */
|
|
714
|
+
isDefault?: boolean;
|
|
715
|
+
/** 是否为默认选中的字幕,与 `isDefault` 等价。 */
|
|
716
|
+
default?: boolean;
|
|
713
717
|
};
|
|
714
718
|
export declare type IAutoSubtitleItemFormatter = (item: IAutoSubtitleSourceItem, index: number) => IAutoSubtitleFormatterResult;
|
|
715
719
|
/**
|
|
@@ -2285,6 +2289,11 @@ export interface ITTDramaEnv {
|
|
|
2285
2289
|
* @type {boolean}
|
|
2286
2290
|
*/
|
|
2287
2291
|
canIUseGetDramaInfo: boolean;
|
|
2292
|
+
/**
|
|
2293
|
+
* @brief Android 是否支持批量获取短剧信息(高版本 app)
|
|
2294
|
+
* @type {boolean}
|
|
2295
|
+
*/
|
|
2296
|
+
canAndroidBatchGetDramaInfo?: boolean;
|
|
2288
2297
|
/**
|
|
2289
2298
|
* @brief 获取短剧信息
|
|
2290
2299
|
* @type {function}
|
|
@@ -2938,7 +2947,7 @@ export interface IPlayerConfig extends IPlayerOptions {
|
|
|
2938
2947
|
*/
|
|
2939
2948
|
autoSubtitle?: boolean;
|
|
2940
2949
|
/** {zh}
|
|
2941
|
-
* @brief 自动字幕项格式化回调。返回字符串或数字时作为字幕名称;返回 `false` 或 `{ show: false }`
|
|
2950
|
+
* @brief 自动字幕项格式化回调。返回字符串或数字时作为字幕名称;返回 `false` 或 `{ show: false }` 时不展示该项;返回 `{ isDefault: true }` 或 `{ default: true }` 时设为默认字幕。
|
|
2942
2951
|
* @default -
|
|
2943
2952
|
*/
|
|
2944
2953
|
formatAutoSubtitleItem?: IAutoSubtitleItemFormatter;
|