commit 6eecb5ef262bc9db8824e3ecb0bac9079ca965d4
parent 5dc3e2635ee15f660c03c759adaf1081ef1bad37
Author: William Casarin <jb55@jb55.com>
Date: Tue, 30 May 2023 18:44:36 -0700
video-player: don't stop audio, mix with external media
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/damus/ContentView.swift b/damus/ContentView.swift
@@ -6,6 +6,7 @@
//
import SwiftUI
+import AVKit
struct TimestampedProfile {
let profile: Profile
@@ -315,6 +316,7 @@ struct ContentView: View {
.ignoresSafeArea(.keyboard)
.onAppear() {
self.connect()
+ try? AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playback, mode: .default, options: .mixWithOthers)
setup_notifications()
}
.sheet(item: $active_sheet) { item in