From c514fb360ed0e828a79cff9fc79500a08e0f6a68 Mon Sep 17 00:00:00 2001 From: truewhile <62226914+truewhile@users.noreply.github.com> Date: Mon, 24 Aug 2026 23:06:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化 --- web/src/components/PlayerControls.tsx | 76 ++++++++++++++++++++++++++- web/src/pages/PlayerPage.tsx | 38 +++++++++++++- web/src/pages/PlayerVideoStage.tsx | 29 +++++++++- 3 files changed, 138 insertions(+), 5 deletions(-) diff --git a/web/src/components/PlayerControls.tsx b/web/src/components/PlayerControls.tsx index 4251430..c9682da 100644 --- a/web/src/components/PlayerControls.tsx +++ b/web/src/components/PlayerControls.tsx @@ -1,5 +1,7 @@ import { useEffect, useRef, useState } from 'react' import { + Captions, + CaptionsOff, Maximize, MessageSquareText, Minimize, @@ -9,6 +11,7 @@ import { Volume2, VolumeX, } from 'lucide-react' +import type { SubtitleTrack } from '../api/subtitles' // PlayerControls — custom bottom control bar replacing the native