/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ export interface LivePlayer { /** * live-player 属性的唯一标志符 */ id: string; /** * 音视频地址,详见下方主流格式支持 */ src: string; /** * 自动播放 */ autoplay?: boolean; /** * 是否静音 */ muted?: boolean; /** * 画面方向,有效值有 vertical、horizontal 。目前仅支持安卓端使用该属性 */ orientation?: "vertical" | "horizontal"; /** * 填充模式,有效值:contain、fillCrop */ "object-fit"?: "contain" | "fillCrop"; /** * 进入后台时是否静音(已废弃,默认退台静音) */ "background-mute"?: boolean; /** * 最小缓冲区(单位:s) */ "min-cache"?: number; /** * 最大缓冲区(单位:s) */ "max-cache"?: number; /** * 播放状态变化事件,参考下方状态码,detail = {code} */ bindStateChange?: () => void; /** * 网络状态变化通知,参考下方网络状态数据,detail = {info} */ bindNetStatus?: () => void; /** * 全屏变化事件,detail = {direction, fullscreen} */ bindFullScreenChange?: () => void; }