We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Switching to PIP mode automatically changes the video orientation to landscape
Relevant code for setup
lazy var remoteVideoView = { let r = VideoView() r.layoutMode = .fill r.backgroundColor = .black r.clipsToBounds = true // r.isDebugMode = true r.tag = 1723 r.translatesAutoresizingMaskIntoConstraints = false r.renderMode = .sampleBuffer return r }() func setupPIP() { DispatchQueue.main.async { if AVPictureInPictureController.isPictureInPictureSupported(), let sampleBufferLayer = self.remoteVideoView.avSampleBufferDisplayLayer { sampleBufferLayer.videoGravity = .resizeAspect let contentSource = AVPictureInPictureController.ContentSource( sampleBufferDisplayLayer: sampleBufferLayer, playbackDelegate: self ) self.pipController = AVPictureInPictureController(contentSource: contentSource) self.pipController?.requiresLinearPlayback = true self.pipController?.setValue(true, forKey: "controlsStyle") } else { print("PiP is not supported on this device.>\(AVPictureInPictureController.isPictureInPictureSupported())" ) } } }
How can I change the orientation of PIP to portrait?
SDK Version 2.0.18
iOS/macOS Version 18.1.1
Xcode Version 16.1
The text was updated successfully, but these errors were encountered:
hiroshihorie
No branches or pull requests
Describe the bug
Switching to PIP mode automatically changes the video orientation to landscape
Relevant code for setup
How can I change the orientation of PIP to portrait?
SDK Version
2.0.18
iOS/macOS Version
18.1.1
Xcode Version
16.1
The text was updated successfully, but these errors were encountered: