import { PixPlaceHolder, PixPlaceHolderProps } from './PixPlaceHolder'; /** * @param onVideoLoad * @param onVideoProgress * @param onVideoSizeChanged * @param onVideoStateChanged 播放状态改变, */ interface DemoPageProps extends PixPlaceHolderProps { onVideoLoad?: Function; onVideoProgress?: Function; onVideoSizeChanged?: Function; onVideoStateChanged?: Function; } export declare class PVideo extends PixPlaceHolder { videoPlayerInstance: null; CS: any; puerts: any; constructor(props: any); onAttach: () => void; initVideo: (video: any, parent: any) => void; /** * 加载一个url,加载完成后会暂停发送firstTextureLoaded消息 * @param url url * @param loop 是否循环播放 */ loadUrl: (url: string, loop?: boolean) => void; seek: (seekTime: number) => void; pause: () => void; resume: () => void; close: () => void; setNextVideo: (nextUrl: string, loopPlay?: boolean) => void; setRate: (rate: number) => void; setVolume: (volume: number) => void; getVideoPlayerInstance: () => null; } export declare enum videoPlayerState { error = 0, onplay = 1, end = 2, loopend = 3, loading = 4, loadend = 5, firstTextureLoaded = 6, sizeChanged = 7 } export {};