From 4272f102c738596481aaef5445eca154f2b1dba8 Mon Sep 17 00:00:00 2001 From: DannyFeng Date: Tue, 27 Aug 2024 20:42:35 +0800 Subject: [PATCH] Update VideoPlayerView.swift --- MeowBili/Video/VideoPlayerView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MeowBili/Video/VideoPlayerView.swift b/MeowBili/Video/VideoPlayerView.swift index d876387a0..4eccc62d6 100644 --- a/MeowBili/Video/VideoPlayerView.swift +++ b/MeowBili/Video/VideoPlayerView.swift @@ -57,6 +57,7 @@ struct VideoPlayerView: View { @AppStorage("IsDanmakuEnabled") var isDanmakuEnabled = true @AppStorage("IsVideoPlayerGestureEnabled") var isVideoPlayerGestureEnabled = true @AppStorage("VideoPlayerGestureBehavior") var videoPlayerGestureBehavior = "Play/Pause" + @AppStorage("externalSound") var externalSound: Bool = false @State var tabviewChoseTab = 1 @State var isFullScreen = false @State var playbackSpeed = 1.0 @@ -323,7 +324,7 @@ struct VideoPlayerView: View { isFinishedInit = true #if os(watchOS) - // 根据 ExternalSound 设置配置 AVAudioSession + // 根据 externalSound 设置配置 AVAudioSession let audioSession = AVAudioSession.sharedInstance() do { if externalSound {