Skip to content

Commit

Permalink
Update VideoPlayerView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
FengzihangCode committed Aug 27, 2024
1 parent d49578e commit 4272f10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MeowBili/Video/VideoPlayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -323,7 +324,7 @@ struct VideoPlayerView: View {
isFinishedInit = true

#if os(watchOS)
// 根据 ExternalSound 设置配置 AVAudioSession
// 根据 externalSound 设置配置 AVAudioSession
let audioSession = AVAudioSession.sharedInstance()
do {
if externalSound {
Expand Down

0 comments on commit 4272f10

Please sign in to comment.