interface IVideoPlayerOptions {
    controls?: boolean;
    live?: boolean;
    obeyMuteSwitch?: boolean;
    objectFit?: "fill" | "contain" | "cover";
    showCenterPlayBtn?: boolean;
    showProgress?: boolean;
    showProgressInControlMode?: boolean;
    underGameView?: boolean;
}

属性

controls?: boolean

Whether to show the video controls. Default is false.

是否显示视频控制。默认否。

live?: boolean

Whether it is live broadcast。

是否是直播。

obeyMuteSwitch?: boolean

Whether the video follows the system mute switch setting (iOS only)。

视频是否遵循系统静音开关设置(仅iOS)。

objectFit?: "fill" | "contain" | "cover"

Video scaling mode. Default is contain.

视频的缩放模式。默认contain。

showCenterPlayBtn?: boolean

Whether to show the play button in the center of the video。

是否在视频中间显示播放按钮。

showProgress?: boolean

Whether to show the video progress bar.

是否显示视频进度条。

showProgressInControlMode?: boolean

Whether to show the progress bar in the control bar.

是否显示控制栏的进度条。

underGameView?: boolean

Whether the video is displayed under the game canvas (the canvas needs to be set to transparent). Default is false.

视频是否显示在游戏画布之下(画布需设置为透明)。默认否。