You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal func updateVideoOutputSettings() {
if let videoOutput = self._videoOutput {
if let videoConnection = videoOutput.connection(with: AVMediaType.video) {
if videoConnection.isVideoStabilizationSupported {
videoConnection.preferredVideoStabilizationMode = self.videoStabilizationMode
}
}
}
}
Line videoConnection.preferredVideoStabilizationMode = self.videoStabilizationMode is unreachable because video connection doesn't exist. So set videoStabilizationMode in viewDidApear and it will work
The text was updated successfully, but these errors were encountered:
Preview and video stabilization do not work in any mode. I configure the session in viewDidLoad, launch the camera in viewWillApear.
Code:
Line videoConnection.preferredVideoStabilizationMode = self.videoStabilizationMode is unreachable because video connection doesn't exist. So set videoStabilizationMode in viewDidApear and it will work
The text was updated successfully, but these errors were encountered: