@flashport/flashport
Version:
FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library
27 lines (26 loc) • 749 B
TypeScript
import { Sprite } from "../display/Sprite";
/**
* ...
* @author Kenny Lerma
*/
export declare class VideoPlayer extends Sprite {
private _video;
private _playBtn;
private _netConnection;
private _netStream;
private _url;
private _isPlaying;
private _initialPlay;
constructor(url: String, videoWidth?: number, videoHeight?: number);
private connectStream;
togglePlayPause: () => void;
private onPlayerClicked;
private netStatusHandler;
hitTestPoint: (x: number, y: number, shapeFlag?: boolean) => boolean;
}
export declare class CustomClient {
onMetaData: (info: any) => void;
onCuePoint: (info: any) => void;
onXMPData: (info: any) => void;
onPlayStatus: (info: any) => void;
}