¡@

Home 

2014/10/15 ¤U¤È 10:04:28

iphone Programming Glossary: avlayervideogravityresizeaspectfill

AVAsset and AVAssetTrack - Track Management in IOS 4.0

http://stackoverflow.com/questions/3298290/avasset-and-avassettrack-track-management-in-ios-4-0

view .layer insertSublayer playerLayer atIndex 0 playerLayer.frame self view .layer.bounds playerLayer.videoGravity AVLayerVideoGravityResizeAspectFill And finally play your video mp play Export to camera roll NSString exportVideoPath your local path to your exported file..

How to change video orientation for AVCaptureVideoDataOutput

http://stackoverflow.com/questions/3823461/how-to-change-video-orientation-for-avcapturevideodataoutput

AVCaptureVideoOrientationLandscapeLeft self.prevLayer.frame self.view.bounds self.prevLayer.videoGravity AVLayerVideoGravityResizeAspectFill self.view.layer addSublayer self.prevLayer AVCaptureConnection videoConnection NULL self.captureSession beginConfiguration..

iPhone SDK 4 AVFoundation - How to use captureStillImageAsynchronouslyFromConnection correctly?

http://stackoverflow.com/questions/3847140/iphone-sdk-4-avfoundation-how-to-use-capturestillimageasynchronouslyfromconnec

AVCaptureVideoOrientationLandscapeLeft self.prevLayer.frame CGRectMake 0.0 0.0 480.0 320.0 self.prevLayer.videoGravity AVLayerVideoGravityResizeAspectFill self.view.layer addSublayer self.prevLayer Setup the default file outputs AVCaptureStillImageOutput _stillImageOutput AVCaptureStillImageOutput..

AVCaptureVideoPreviewLayer

http://stackoverflow.com/questions/5117770/avcapturevideopreviewlayer

avfoundation share improve this question Maybe this solves it CGRect bounds view.layer.bounds avLayer.videoGravity AVLayerVideoGravityResizeAspectFill avLayer.bounds bounds avLayer.position CGPointMake CGRectGetMidX bounds CGRectGetMidY bounds share improve this answer..

How can I get autofocus to work in a second AVCaptureSession without recreating the sessions?

http://stackoverflow.com/questions/5427561/how-can-i-get-autofocus-to-work-in-a-second-avcapturesession-without-recreating

preview layer. previewLayer AVCaptureVideoPreviewLayer layerWithSession session retain previewLayer setVideoGravity AVLayerVideoGravityResizeAspectFill previewLayer setFrame view bounds view layer addSublayer previewLayer Configure the inputs and outputs. session setSessionPreset..

Cropping image captured by AVCaptureSession

http://stackoverflow.com/questions/5780580/cropping-image-captured-by-avcapturesession

the image so the cropped image is exactly what the user has places inside the square. The preview layer has gravity AVLayerVideoGravityResizeAspectFill. It looks like what the camera actually captures is not exactly what the user sees in the preview layer. This means that..

Avfoundation - Play and record video (along with audio and preview) simultaneously

http://stackoverflow.com/questions/6991452/avfoundation-play-and-record-video-along-with-audio-and-preview-simultaneous

captureVideoPreviewLayer setOrientation AVCaptureVideoOrientationPortrait captureVideoPreviewLayer setVideoGravity AVLayerVideoGravityResizeAspectFill captureManager session startRunning self setCaptureVideoPreviewLayer captureVideoPreviewLayer if captureManager session..