Skip to content

Commit

Permalink
[Fix]CalSettings propagation to call (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipavlidakis authored Sep 3, 2024
1 parent 95792a4 commit 17fbf0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/StreamVideo/Call.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ public class Call: @unchecked Sendable, WSEventsSubscriber {
self.callController = callController
microphone = MicrophoneManager(
callController: callController,
initialStatus: .enabled
initialStatus: callSettings?.audioOn == false ? .disabled : .enabled
)
camera = CameraManager(
callController: callController,
initialStatus: .enabled,
initialStatus: callSettings?.videoOn == false ? .disabled : .enabled,
initialDirection: .front
)
speaker = SpeakerManager(
callController: callController,
initialSpeakerStatus: .enabled,
initialAudioOutputStatus: .enabled
initialSpeakerStatus: callSettings?.speakerOn == false ? .disabled : .enabled,
initialAudioOutputStatus: callSettings?.audioOutputOn == false ? .disabled : .enabled
)

/// If we received a non-nil initial callSettings, we updated them here.
Expand Down

0 comments on commit 17fbf0f

Please sign in to comment.