@byteplus/veplayer 1.15.1 → 1.15.2-rc.1

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
@@ -2856,6 +2856,11 @@ 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;
2859
2864
  /** {zh}
2860
2865
  * @breif 是否总是显示清晰度切换控件,即只有一个清晰度时也显示清晰度切换控件
2861
2866
  * @default false
@@ -3766,6 +3771,28 @@ export interface IPIPConfig extends IPluginConfig {
3766
3771
  */
3767
3772
  docPiPStyle?: ((...arg: any) => string) | string;
3768
3773
  }
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
+ }
3769
3796
  /** {zh}
3770
3797
  * @brief 全屏配置。
3771
3798
  * @list Options