Fix video rotation

This commit is contained in:
Isaac
2023-12-19 01:57:09 +04:00
parent 602d38befe
commit 49afa2a145
2 changed files with 6 additions and 7 deletions

View File

@@ -128,7 +128,7 @@ public final class ViewController: UIViewController {
return
}
if self.callState.localVideo == nil {
self.callState.localVideo = FileVideoSource(device: MetalEngine.shared.device, url: Bundle.main.url(forResource: "test3", withExtension: "mp4")!, fixedRotationAngle: Float.pi * 0.0)
self.callState.localVideo = FileVideoSource(device: MetalEngine.shared.device, url: Bundle.main.url(forResource: "test3", withExtension: "mp4")!, fixedRotationAngle: Float.pi * 0.5)
} else {
self.callState.localVideo = nil
}