커뮤니티 오디오 녹음
- mode: videoRecording - 재생 mode: moviePlayback
This commit is contained in:
@@ -48,7 +48,7 @@ final class CreatorCommunityMediaPlayerManager: NSObject, ObservableObject {
|
||||
|
||||
do {
|
||||
let audioSession = AVAudioSession.sharedInstance()
|
||||
try audioSession.setCategory(.playback, mode: .default)
|
||||
try audioSession.setCategory(.playback, mode: .moviePlayback)
|
||||
try audioSession.setActive(true)
|
||||
|
||||
self.player = try AVAudioPlayer(data: audioData)
|
||||
|
@@ -104,7 +104,7 @@ class CreatorCommunitySoundManager: NSObject, ObservableObject {
|
||||
|
||||
DispatchQueue.main.async {
|
||||
do {
|
||||
try self.audioSession.setCategory(.playback, mode: .default)
|
||||
try self.audioSession.setCategory(.playback, mode: .moviePlayback)
|
||||
try self.audioSession.setActive(true)
|
||||
|
||||
if let url = url {
|
||||
|
Reference in New Issue
Block a user