UNPKG

ps-tcplayer

Version:

Tencent Cloud Player component with Vue2/Vue3 compatibility

38 lines (37 loc) 1.77 kB
interface InstanceData { app: any; vm: any; mountEl: HTMLElement; container: Element; config: any; playerReady: boolean; readyCallbacks: Function[]; playerInstance: any; } declare class TcPlayerSDK { static version: string; static TcPlayerComponent: { PlayerNextComponent: typeof import("./tccomponents/PlayerNextComponent").default; PlayPrevComponent: typeof import("./tccomponents/PlayPrevComponent").default; MemoryPlayComponent: typeof import("./tccomponents/MemoryPlayComponent").default; RateComponent: typeof import("./tccomponents/RateComponent").default; BulletScreenComponent: typeof import("./tccomponents/BulletScreenComponent").default; CountdownComponent: typeof import("./tccomponents/CountdownComponent").default; SnapshotComponent: typeof import("./tccomponents/SnapshotComponent").default; WebFullscreenComponent: typeof import("./tccomponents/WebFullscreenComponent").default; WideScreenComponent: typeof import("./tccomponents/WideScreenComponent").default; ErrorReportComponent: typeof import("./tccomponents/ErrorReportComponent").default; ReportingComponent: typeof import("./tccomponents/ReportingComponent").default; }; static isVue2: boolean; static isVue3: boolean; private static instances; static init(selector: string, config?: any): string | null; static destroy(instanceId: string): boolean; static getInstance(instanceId: string): InstanceData; static getAllInstances(): string[]; static getPlayer(instanceId: string): any; static waitForPlayerReady(instanceId: string): Promise<any>; static isPlayerReady(instanceId: string): boolean; } export default TcPlayerSDK;