UNPKG

@mediatrack/open-player

Version:

文档见 [分秒帧开放平台](https://open.mediatrack.cn/#/docs/api/jssdk/player)

46 lines 1.19 kB
/** * MediaComponent 用到的 */ import { TDisplayRatioItem } from "."; export type TPlayingStatus = "loading" | "ready" | "playing" | "paused" | "ended"; export type TPlayerStatus = { src: string; res: string; duration: number; bufferStartTime: number; loadedTime: number; currentTime: number; status: TPlayingStatus; displayRatio: number; displayRatioList: TDisplayRatioItem[]; }; export type TImageState = { /** 当前缩放比例 */ scale: number; /** 当前位置 x坐标值 */ positionX: number; /** 当前位置 y坐标值 */ positionY: number; /** 图片当前宽度 */ width: number; /** 图片当前高度 */ height: number; /** 图片原始宽度 */ originWidth: number; /** 图片原始高度 */ originHeight: number; /** 小地图展示 */ showThumbnails: boolean; /** 容器宽度 */ containerWidth: number; /** 容器高度 */ containerHeight: number; }; export declare enum STATUS_TYPE { "LOADING" = "loading", "READY" = "ready", "PLAYING" = "playing", "PAUSED" = "paused", "ENDED" = "ended" } //# sourceMappingURL=mediatype.d.ts.map