This commit is contained in:
Trey t
2023-07-05 22:08:47 -05:00
parent 4bcfd6a7fa
commit e43e5b11bf
8 changed files with 207 additions and 28 deletions

View File

@@ -207,7 +207,7 @@ class BridgeModule: NSObject, ObservableObject {
mode: .default,
options: [.mixWithOthers, .allowAirPlay])
try AVAudioSession.sharedInstance().setActive(true)
audioPlayer = try AVAudioPlayer(contentsOf: URL(fileURLWithPath: path))
audioPlayer?.play()
} catch {