-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb7ad4a
commit 194ea1a
Showing
12 changed files
with
772 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 0 additions & 97 deletions
97
Sources/StreamVideo/Utils/AudioSession/AudioSessionProtocol.swift
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...es/StreamVideo/Utils/AudioSession/Extensions/AVAudioSession+RequestRecordPermission.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// Copyright © 2025 Stream.io Inc. All rights reserved. | ||
// | ||
|
||
import AVFoundation | ||
import Foundation | ||
|
||
extension AVAudioSession { | ||
/// Asynchronously requests permission to record audio. | ||
/// - Returns: A Boolean indicating whether permission was granted. | ||
private func requestRecordPermission() async -> Bool { | ||
await withCheckedContinuation { continuation in | ||
self.requestRecordPermission { result in | ||
continuation.resume(returning: result) | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.