diff --git a/dist/index.d.ts b/dist/index.d.ts index 5041db7a..299effa4 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -6,6 +6,7 @@ export interface Web265JsExtraConfig { coreProbePart?: number ignoreAudio?: 0 | 1 probeSize?: number + autoPlay?: boolean } export interface Web265JsConfig { @@ -66,6 +67,7 @@ interface New265WebJs { onCloseFullScreen(): void do(): void pause(): void + play(): void isPlaying(): boolean setRenderScreen(state: boolean): void seek(pts: number): void diff --git a/index-debug.html b/index-debug.html index 84c2fb3c..edbfed3a 100644 --- a/index-debug.html +++ b/index-debug.html @@ -175,19 +175,11 @@ console.log(play_url); /* - * - * * 1. create player object - * - * */ playerObj = window.new265webjs(play_url, config); /* - * - * * 2. bind events - * - * */ playerObj.onSeekStart = (pts) => { loggerObj.scrollNewest("\r\nonSeekStart:" + pts); @@ -288,11 +280,7 @@ }; /* - * - * * 3. install player - * - * */ playerObj.do(); } // end func installPlayer