diff --git a/Sources/StreamVideo/WebRTC/StreamVideoCaptureHandler.swift b/Sources/StreamVideo/WebRTC/StreamVideoCaptureHandler.swift index 5eea09187..2a67778d2 100644 --- a/Sources/StreamVideo/WebRTC/StreamVideoCaptureHandler.swift +++ b/Sources/StreamVideo/WebRTC/StreamVideoCaptureHandler.swift @@ -78,7 +78,7 @@ final class StreamVideoCaptureHandler: NSObject, RTCVideoCapturerDelegate { for buffer: RTCCVPixelBuffer?, frame: RTCVideoFrame ) -> RTCVideoFrame { - #if os(macOS) + #if os(macOS) || targetEnvironment(simulator) || targetEnvironment(macCatalyst) var rotation = RTCVideoRotation._0 #else var rotation = RTCVideoRotation._90 diff --git a/Sources/StreamVideoSwiftUI/CallView/VideoRenderer.swift b/Sources/StreamVideoSwiftUI/CallView/VideoRenderer.swift index 03769a974..96f7de217 100644 --- a/Sources/StreamVideoSwiftUI/CallView/VideoRenderer.swift +++ b/Sources/StreamVideoSwiftUI/CallView/VideoRenderer.swift @@ -52,7 +52,7 @@ public struct LocalVideoView: View { } private var shouldRotate: Bool { - callSettings.cameraPosition == .front && callSettings.videoOn + callSettings.cameraPosition == .front } }