Skip to content

Commit

Permalink
[Fix]Local video rotate on YAxis when turning off video (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipavlidakis authored Mar 13, 2024
1 parent 869ca72 commit d515c48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/StreamVideo/WebRTC/StreamVideoCaptureHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/StreamVideoSwiftUI/CallView/VideoRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public struct LocalVideoView<Factory: ViewFactory>: View {
}

private var shouldRotate: Bool {
callSettings.cameraPosition == .front && callSettings.videoOn
callSettings.cameraPosition == .front
}
}

Expand Down

0 comments on commit d515c48

Please sign in to comment.