From f25cdca3964eb48d6fef5766ce59975bf3a9d041 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Thu, 2 Apr 2026 11:35:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(video):=20=E6=B7=BB=E5=8A=A0=E9=98=BF?= =?UTF-8?q?=E9=87=8C=E4=BA=91=E6=92=AD=E6=94=BE=E5=99=A8=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 AliPlayerRef 接口中新增 getPlayerInstance 方法 - 该方法返回播放器实例,便于外部访问播放器功能 --- src/components/Video/AliPlayer.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Video/AliPlayer.d.ts b/src/components/Video/AliPlayer.d.ts index 33e9d75..575243d 100644 --- a/src/components/Video/AliPlayer.d.ts +++ b/src/components/Video/AliPlayer.d.ts @@ -32,6 +32,7 @@ export interface AliPlayerProps { export interface AliPlayerRef { play: () => void; pause: () => void; + getPlayerInstance: () => any; } /**