     
         let videoOutput = _getMovieOutput()
         
-        for connection in videoOutput.connections {
-            for port in connection.inputPorts {
-                if port.mediaType == AVMediaType.video {
-                    let videoConnection = connection as AVCaptureConnection
-                    // setup video mirroring
-                    if videoConnection.isVideoMirroringSupported {
-                        videoConnection.isVideoMirrored = (cameraDevice == CameraDevice.front && shouldFlipFrontCameraImage)
-                    }
-
-                    if videoConnection.isVideoStabilizationSupported {
-                        videoConnection.preferredVideoStabilizationMode = videoStabilisationMode
-                    }
-                }
-            }
-        }
-        
         if shouldUseLocationServices {
             
             let specs = [kCMMetadataFormatDescriptionMetadataSpecificationKey_Identifier as String: AVMetadataIdentifier.quickTimeMetadataLocationISO6709,

                        }
                    }
                    if previousOrientation != self.deviceOrientation {
                        print("orientation changed")
                        self._orientationChanged()
                    }
                }

    }
    
    /// Property to change camera output.
    open var cameraOutputMode: CameraOutputMode = .stillImage {
        didSet {
            if cameraIsSetup {
                if cameraOutputMode != oldValue {
