¡@

Home 

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

iphone Programming Glossary: isvideoorientationsupported

iPhone AVFoundation camera orientation

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

CameraVC connectionWithMediaType AVMediaTypeVideo fromConnections imageCaptureOutput connections if videoConnection isVideoOrientationSupported videoConnection setVideoOrientation UIApplication sharedApplication .statusBarOrientation imageCaptureOutput captureStillImageAsynchronouslyFromConnection.. connectionWithMediaType AVMediaTypeVideo fromConnections self stillImageOutput connections if videoConnection isVideoOrientationSupported videoConnection setVideoOrientation AVCaptureVideoOrientationPortrait self stillImageOutput captureStillImageAsynchronouslyFromConnection.. CameraVC connectionWithMediaType AVMediaTypeVideo fromConnections imageCaptureOutput connections if videoConnection isVideoOrientationSupported videoConnection setVideoOrientation UIDevice currentDevice .orientation And it works perfectly D Woop woop share improve..

How to change video orientation for AVCaptureVideoDataOutput

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

as its stated by default in AVCaptureVideoDataOutput. Im trying to change orientation in AVCaptureConnection class but isVideoOrientationSupported is always false is it somehow possible to fix it Here is some code AVCaptureDeviceInput captureInput AVCaptureDeviceInput.. in connection inputPorts if port mediaType isEqual AVMediaTypeVideo videoConnection connection if videoConnection isVideoOrientationSupported Here it is its always false videoConnection setVideoOrientation AVCaptureVideoOrientationLandscapeLeft self.captureSession.. know why yet but if you query your videoConnection right after you create all the inputs outputs connections then both isVideoOrientationSupported and supportsVideoOrientation return NO. However if you query supportsVideoOrientation or isVideoOrientationSupported at..

Video Recording using AVFoundation Framework iPhone?

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

playVideo connectionWithMediaType AVMediaTypeVideo fromConnections self movieFileOutput connections if videoConnection isVideoOrientationSupported videoConnection setVideoOrientation self orientation self movieFileOutput startRecordingToOutputFileURL self tempFileURL..