/* 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 { /** * 视频地址。目前支持 flv、rtmp 和 hls,支持跨域。 */ src: string; /** * 是否自动播放 */ autoplay?: boolean; /** * 是否静音 */ muted?: boolean; /** * 画面朝向,vertical 为竖直,horizontal 为水平,详情见 orientation 的合法值。 */ orientation?: "vertical" | "horizontal"; /** * 填充模式,可选值有 contain,fillCrop,详情见 object-fit 的合法值。 */ "object-fit"?: "contain" | "fillCrop"; /** * 设置署名水印 */ signature?: { [k: string]: unknown; }; /** * 播放状态变化事件,detail = {code}。 */ bindStateChange?: () => void; /** * 全屏变化事件,detail = {direction, fullScreen}。 */ bindFullScreenChange?: () => void; /** * 播放错误事件 */ bindError?: () => void; }