From becb04ca1175a78e66df25babc3a62aa82c728fd Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Wed, 27 Nov 2024 10:57:14 +0000 Subject: [PATCH] Use custom WebRTC --- .../06-advanced/06-apply-video-filters.swift | 2 +- .../DocumentationTests/GloballyUsedVariables.swift | 4 ++-- .../Utils/AudioSession/StreamRTCAudioSession.swift | 4 ++-- StreamVideo.xcodeproj/project.pbxproj | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DocumentationTests/DocumentationTests/DocumentationTests/06-advanced/06-apply-video-filters.swift b/DocumentationTests/DocumentationTests/DocumentationTests/06-advanced/06-apply-video-filters.swift index 67591c994..00fd48fa0 100644 --- a/DocumentationTests/DocumentationTests/DocumentationTests/06-advanced/06-apply-video-filters.swift +++ b/DocumentationTests/DocumentationTests/DocumentationTests/06-advanced/06-apply-video-filters.swift @@ -250,7 +250,7 @@ fileprivate func content() { } } } - + container { // Get a call object let call = streamVideo.call(callType: "default", callId: UUID().uuidString) diff --git a/DocumentationTests/DocumentationTests/DocumentationTests/GloballyUsedVariables.swift b/DocumentationTests/DocumentationTests/DocumentationTests/GloballyUsedVariables.swift index 8cf205b95..2537833d6 100644 --- a/DocumentationTests/DocumentationTests/DocumentationTests/GloballyUsedVariables.swift +++ b/DocumentationTests/DocumentationTests/DocumentationTests/GloballyUsedVariables.swift @@ -250,7 +250,7 @@ final class UnsecureRepository: VoIPTokenHandler { func save(voIPPushToken: String?) { } - + func currentVoIPPushToken() -> String? { nil } @@ -279,7 +279,7 @@ protocol VoIPTokenHandler { } final class CallKitService { - + func reportIncomingCall( callCid: String, displayName: String, diff --git a/Sources/StreamVideo/Utils/AudioSession/StreamRTCAudioSession.swift b/Sources/StreamVideo/Utils/AudioSession/StreamRTCAudioSession.swift index 26e443648..624d19e82 100644 --- a/Sources/StreamVideo/Utils/AudioSession/StreamRTCAudioSession.swift +++ b/Sources/StreamVideo/Utils/AudioSession/StreamRTCAudioSession.swift @@ -60,7 +60,7 @@ final class StreamRTCAudioSession: AudioSessionProtocol { /// - Parameter mode: The audio mode to set. /// - Throws: An error if setting the mode fails. func setMode(_ mode: String) throws { - try source.setMode(mode) + try source.setMode(AVAudioSession.Mode(rawValue: mode)) } /// Configures the audio category and category options for the session. @@ -73,7 +73,7 @@ final class StreamRTCAudioSession: AudioSessionProtocol { _ category: String, with categoryOptions: AVAudioSession.CategoryOptions ) throws { - try source.setCategory(category, with: categoryOptions) + try source.setCategory(AVAudioSession.Category(rawValue: category), with: categoryOptions) } /// Activates or deactivates the audio session. diff --git a/StreamVideo.xcodeproj/project.pbxproj b/StreamVideo.xcodeproj/project.pbxproj index 355d8467f..2fbc68e8a 100644 --- a/StreamVideo.xcodeproj/project.pbxproj +++ b/StreamVideo.xcodeproj/project.pbxproj @@ -8804,7 +8804,7 @@ repositoryURL = "https://github.com/GetStream/stream-video-swift-webrtc"; requirement = { kind = exactVersion; - version = 114.5735.8; + version = 125.6422.62; }; }; 8423B7542950BB0A00012F8D /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {