From c0b6151ec383eab132789fd3e46a6a076b65675b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=B9=E9=B8=BF=E4=BC=9F?= <734824565@qq.com> Date: Thu, 20 Mar 2025 11:11:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=EF=BC=9B=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.d.ts | 2 ++ index-debug.html | 12 ------------ 2 files changed, 2 insertions(+), 12 deletions(-) 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