¡@

Home 

2014/10/15 ¤U¤È 10:15:46

iphone Programming Glossary: videoconnection

Using AVCaptureSession and AVAudioPlayer together

http://stackoverflow.com/questions/10903542/using-avcapturesession-and-avaudioplayer-together

docDir stringByAppendingPathComponent filePath NSURL fileURL NSURL fileURLWithPath fileRoot AVCaptureConnection videoConnection NULL for AVCaptureConnection connection in m_captureFileOutput connections for AVCaptureInputPort port in connection inputPorts.. connections for AVCaptureInputPort port in connection inputPorts if port mediaType isEqual AVMediaTypeVideo videoConnection connection videoConnection setVideoOrientation AVCaptureVideoOrientationLandscapeRight m_captureFileOutput startRecordingToOutputFileURL.. port in connection inputPorts if port mediaType isEqual AVMediaTypeVideo videoConnection connection videoConnection setVideoOrientation AVCaptureVideoOrientationLandscapeRight m_captureFileOutput startRecordingToOutputFileURL fileURL recordingDelegate..

iPhone AVFoundation camera orientation

http://stackoverflow.com/questions/3662930/iphone-avfoundation-camera-orientation

I've downloaded the WWDC sample program but even that doesn't do it. The code from my app is... AVCaptureConnection videoConnection CameraVC connectionWithMediaType AVMediaTypeVideo fromConnections imageCaptureOutput connections if videoConnection isVideoOrientationSupported.. videoConnection CameraVC connectionWithMediaType AVMediaTypeVideo fromConnections imageCaptureOutput connections if videoConnection isVideoOrientationSupported videoConnection setVideoOrientation UIApplication sharedApplication .statusBarOrientation imageCaptureOutput.. AVMediaTypeVideo fromConnections imageCaptureOutput connections if videoConnection isVideoOrientationSupported videoConnection setVideoOrientation UIApplication sharedApplication .statusBarOrientation imageCaptureOutput captureStillImageAsynchronouslyFromConnection..

Video Recording using AVFoundation Framework iPhone?

http://stackoverflow.com/questions/3932614/video-recording-using-avfoundation-framework-iphone

@selector startRecording withObject nil afterDelay 1.0 session startRunning void startRecording AVCaptureConnection videoConnection playVideo connectionWithMediaType AVMediaTypeVideo fromConnections self movieFileOutput connections if videoConnection isVideoOrientationSupported.. videoConnection playVideo connectionWithMediaType AVMediaTypeVideo fromConnections self movieFileOutput connections if videoConnection isVideoOrientationSupported videoConnection setVideoOrientation self orientation self movieFileOutput startRecordingToOutputFileURL.. AVMediaTypeVideo fromConnections self movieFileOutput connections if videoConnection isVideoOrientationSupported videoConnection setVideoOrientation self orientation self movieFileOutput startRecordingToOutputFileURL self tempFileURL recordingDelegate..

Capturing Images from AVCaptureSession

http://stackoverflow.com/questions/8264749/capturing-images-from-avcapturesession

capture at specific intervals then set a timer and call that function again. IBAction captureNow AVCaptureConnection videoConnection nil for AVCaptureConnection connection in stillImageOutput.connections for AVCaptureInputPort port in connection inputPorts.. for AVCaptureInputPort port in connection inputPorts if port mediaType isEqual AVMediaTypeVideo videoConnection connection break if videoConnection break NSLog @ about to request a capture from @ stillImageOutput stillImageOutput.. port in connection inputPorts if port mediaType isEqual AVMediaTypeVideo videoConnection connection break if videoConnection break NSLog @ about to request a capture from @ stillImageOutput stillImageOutput captureStillImageAsynchronouslyFromConnection..

How to write exif metadata to an image (not the camera roll, just a UIImage or JPEG)

http://stackoverflow.com/questions/9006759/how-to-write-exif-metadata-to-an-image-not-the-camera-roll-just-a-uiimage-or-j

through AVFoundation and this is what goes in the self stillImageOutput captureStillImageAsynchronouslyFromConnection videoConnection completionHandler ^ CMSampleBufferRef imageSampleBuffer NSError error code here block code CFDictionaryRef metaDict CMCopyDictionaryOfAttachments..