|
@@ -998,7 +998,9 @@
|
|
}
|
|
}
|
|
|
|
|
|
AVCaptureConnection *connection = [self.photoOutput connectionWithMediaType:AVMediaTypeVideo];
|
|
AVCaptureConnection *connection = [self.photoOutput connectionWithMediaType:AVMediaTypeVideo];
|
|
-
|
|
|
|
|
|
+ if ([connection isVideoStabilizationSupported]) {
|
|
|
|
+ connection.preferredVideoStabilizationMode = AVCaptureVideoStabilizationModeAuto;
|
|
|
|
+ }
|
|
if(connection == nil){
|
|
if(connection == nil){
|
|
// [self showAlertForAuthorization];
|
|
// [self showAlertForAuthorization];
|
|
return;
|
|
return;
|
|
@@ -1195,6 +1197,9 @@
|
|
|
|
|
|
NSURL* tmpMovieFileUrl = [NSURL fileURLWithPath:[LenzDataManager moviePath]];
|
|
NSURL* tmpMovieFileUrl = [NSURL fileURLWithPath:[LenzDataManager moviePath]];
|
|
AVCaptureConnection* connection = [self.movieFileOutput connectionWithMediaType:AVMediaTypeVideo];
|
|
AVCaptureConnection* connection = [self.movieFileOutput connectionWithMediaType:AVMediaTypeVideo];
|
|
|
|
+ if ([connection isVideoStabilizationSupported]) {
|
|
|
|
+ connection.preferredVideoStabilizationMode = AVCaptureVideoStabilizationModeAuto;
|
|
|
|
+ }
|
|
if(connection == nil){
|
|
if(connection == nil){
|
|
// [self showAlertForAuthorization];
|
|
// [self showAlertForAuthorization];
|
|
return NO;
|
|
return NO;
|
|
@@ -1272,6 +1277,9 @@
|
|
}
|
|
}
|
|
if([self configureVideoWritter]){
|
|
if([self configureVideoWritter]){
|
|
AVCaptureConnection *connection = [self.videoDataOutput connectionWithMediaType:AVMediaTypeVideo];
|
|
AVCaptureConnection *connection = [self.videoDataOutput connectionWithMediaType:AVMediaTypeVideo];
|
|
|
|
+ if ([connection isVideoStabilizationSupported]) {
|
|
|
|
+ connection.preferredVideoStabilizationMode = AVCaptureVideoStabilizationModeAuto;
|
|
|
|
+ }
|
|
if(connection == nil){
|
|
if(connection == nil){
|
|
// [self showAlertForAuthorization];
|
|
// [self showAlertForAuthorization];
|
|
return;
|
|
return;
|