UNPKG

@mediatrack/open-player

Version:

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

88 lines 2.1 kB
export type TPlayType = "audio" | "video" | "subtitle" | "image" | "other" | "compose" | "pdf" | "none"; export type TWave = { cover: string; wave: string; }; export type TUser = { id: string; nickname: string; avatar: string; }; export type TComment = { id: string; created_at: string; owner: TUser; begin: number; end: number; text: string; annotation?: string; author?: string; contact?: string; content?: any; had_read?: boolean; }; export type TPlacement = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom"; export type TIndicator = { type: "single" | "section" | "none"; sectionBegin: number; sectionEnd: number; }; export type TDefinitionItem = { name: string; value: string; res?: string; content?: any; noClick?: Boolean; hideIcon?: Boolean; }; export type TTrackType = "video" | "audio" | "text"; export type TTrackItem = { name: string; type: TTrackType; id?: string; }; export type TTrack = { video?: TTrackItem[]; audio?: TTrackItem[]; text?: TTrackItem[]; }; export type TDisplayRatioItem = { name: string; value: number; }; export type THotkeyObj = { play?: string; pre?: string; next?: string; fullScreen?: string; exitFullScreen?: string; zoomFull?: string; zoomOut?: string; zoomIn?: string; thumbnails?: string; }; export type TTimeMedia = { id: string; assetId?: string; src: string; res?: string; name: string; trackStart: number; trackEnd: number; start: number; end: number; duration: number; disable?: boolean; cover?: string; waves?: string; muted?: boolean; volume?: number; getSrc?: (item: TTimeMedia) => Promise<string>; }; export type TTimeTrack = { type: "video" | "audio" | "image" | "subtitle"; monitor?: HTMLVideoElement | null; mediaList: TTimeMedia[]; }; export type TTimeType = 1 | 2 | 3; //# sourceMappingURL=index.d.ts.map