import type { PluginInstance, PluginProps } from "white-web-sdk"; export declare type Props = PluginProps; export declare type Instance = PluginInstance; export interface PluginContext { /** * Chrome prevents video play sound on video.play(). * Set `hideMuteAlert: true` to hide the muted mask covering the player. * @default false */ hideMuteAlert?: boolean; /** * @deprecated use `enable` or `room.setWritable()` instead. * @default "guest" */ identity?: "host" | "publisher" | "guest" | "observer"; /** * If set false, videojs plugins will not be controlled by the user input. * @default false */ enable?: boolean; /** * For debug. * @default false */ verbose?: boolean; } export interface VideoJsPluginAttributes { /** 是否显示 X,默认显示 */ close?: boolean; /** 左上角标题,不填则不显示 */ title?: string; /** 视频的 mime type,不填则根据 `src` 后缀判断 */ type?: string; /** 视频文件地址,空字符串时不播放 */ src: string; /** 封面 */ poster: string; /** * host 的当前 `room.calibrationTimestamp`,用于同步 * @example * hostCurrentTime = (room.calibrationTimestamp - hostTime) / 1000 + currentTime */ hostTime: number; /** 当前播放位置秒数,默认 0 */ currentTime: number; /** 是否暂停中,默认 false */ paused: boolean; /** 是否静音中,默认 false */ muted: boolean; /** 音量 0..1,默认 1 */ volume: number; } export declare type Keys = keyof VideoJsPluginAttributes; export declare type Callback = () => void;