Skip to content

Commit

Permalink
Added default captureSessionPreset.
Browse files Browse the repository at this point in the history
  • Loading branch information
rFlex committed Mar 18, 2015
1 parent b98b786 commit cc0adad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Sources/SCRecorder.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ - (id)init {
dispatch_queue_set_specific(_sessionQueue, kSCRecorderRecordSessionQueueKey, "true", nil);
dispatch_set_target_queue(_sessionQueue, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0));

_captureSessionPreset = AVCaptureSessionPresetHigh;
_previewLayer = [[AVCaptureVideoPreviewLayer alloc] init];
_previewLayer.videoGravity = AVLayerVideoGravityResizeAspectFill;
_initializeSessionLazily = YES;
Expand Down

0 comments on commit cc0adad

Please sign in to comment.