@volcengine/veplayer 1.17.0-rc.1 → 1.17.0-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 CHANGED
@@ -904,12 +904,16 @@ export interface IAudioTrackConfig {
904
904
  isShowIcon?: boolean;
905
905
  /** 竖屏时是否隐藏控件。@default false */
906
906
  hidePortrait?: boolean;
907
+ /** 音轨列表中是否在语言名称后显示括号内的原始轨道名,如 `日本語 (Stereo AudioTrack1)`。@default true */
908
+ showNameSuffix?: boolean;
907
909
  }
908
910
  export interface IAudioTrackMobileConfig {
909
911
  /** 控件在控制栏中的排列顺序,数值越小越靠左。@default 2.6 */
910
912
  index?: number;
911
913
  /** 是否显示图标按钮。@default true */
912
914
  isShowIcon?: boolean;
915
+ /** 音轨列表中是否在语言名称后显示括号内的原始轨道名,如 `日本語 (Stereo AudioTrack1)`。@default true */
916
+ showNameSuffix?: boolean;
913
917
  }
914
918
  /**
915
919
  * @brief DASH 播放配置。
@@ -3393,13 +3397,13 @@ export interface IPlayerConfig extends IPlayerOptions {
3393
3397
  */
3394
3398
  defaultDefinition?: string;
3395
3399
  /** {zh}
3396
- * @brief 起播默认音频轨道的语言代码(BCP-47,如 `"zh-cn"`、`"en"`)。
3400
+ * @brief 起播默认音频轨道的语言代码(BCP-47,如 `"zh"`、`"en"`)。
3397
3401
  * @notes HLS 流匹配 `audioTrack.lang`;iOS 原生播放匹配 `audioTrack.language`。
3398
3402
  * 多条轨道语言相同时取第一条。未匹配到时沿用 manifest 默认轨道。
3399
3403
  * @default -
3400
3404
  */
3401
3405
  /** {en}
3402
- * @brief Default audio track language code (BCP-47, e.g. `"zh-cn"`, `"en"`) at playback start. Falls back to the manifest default when no match is found.
3406
+ * @brief Default audio track language code (BCP-47, e.g. `"zh"`, `"en"`) at playback start. Falls back to the manifest default when no match is found.
3403
3407
  * @default -
3404
3408
  */
3405
3409
  defaultAudioLang?: string;