Skip to content

Commit

Permalink
Fix: Used a lower qualilty for the video, as the 720p video stream of…
Browse files Browse the repository at this point in the history
… the iPhone 4 is difficult to manipulmate without lagging
  • Loading branch information
benlodotcom committed Aug 4, 2011
1 parent 78efbf2 commit f8eb31e
Show file tree
Hide file tree
Showing 6 changed files with 2,724 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/MyAVController.m
Expand Up @@ -57,6 +57,8 @@ - (void)initCapture {
/*We add input and output*/
[self.captureSession addInput:captureInput];
[self.captureSession addOutput:captureOutput];
/*We use medium quality, ont the iPhone 4 this demo would be laging too much, the conversion in UIImage and CGImage demands too much ressources for a 720p resolution.*/
[self.captureSession setSessionPreset:AVCaptureSessionPresetMedium];
/*We add the Custom Layer (We need to change the orientation of the layer so that the video is displayed correctly)*/
self.customLayer = [CALayer layer];
self.customLayer.frame = self.view.bounds;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f8eb31e

Please sign in to comment.