iphone Programming Glossary: avcapturetorchmodeon
Turn on torch/flash on iPhone 4 http://stackoverflow.com/questions/3190034/turn-on-torch-flash-on-iphone-4 captureSession addOutput videoOutput captureSession startRunning videoCaptureDevice.torchMode AVCaptureTorchModeOn Does anybody know if this would work or am I missing anything I don't have an iPhone 4 yet to test on just trying out some..
Activate the LED for a flashlight app http://stackoverflow.com/questions/3253187/activate-the-led-for-a-flashlight-app AVMediaTypeVideo if device hasTorch device hasFlash device lockForConfiguration nil device setTorchMode AVCaptureTorchModeOn device setFlashMode AVCaptureFlashModeOn device unlockForConfiguration AVCaptureDeviceInput flashInput AVCaptureDeviceInput..
How can I make the iPhone 4 LED light fire instantly? http://stackoverflow.com/questions/3983032/how-can-i-make-the-iphone-4-led-light-fire-instantly session AVCaptureSession alloc init session beginConfiguration device lockForConfiguration nil device setTorchMode AVCaptureTorchModeOn device setFlashMode AVCaptureFlashModeOn session addInput flashInput session addOutput output device unlockForConfiguration.. on when you want to turn the LED on. Something like self.myDevice lockForConfiguration nil self.myDevice setTorchMode AVCaptureTorchModeOn self.myDevice setFlashMode AVCaptureFlashModeOn self.myDevice unlockForConfiguration Make sure that myDevice is a properly..
AVAssetWritter does not work with audio http://stackoverflow.com/questions/5200077/avassetwritter-does-not-work-with-audio AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance if camera hasTorch if camera isTorchModeSupported AVCaptureTorchModeOn camera setTorchMode AVCaptureTorchModeOn camera unlockForConfiguration session commitConfiguration AVCaptureDeviceInput.. if camera hasTorch if camera isTorchModeSupported AVCaptureTorchModeOn camera setTorchMode AVCaptureTorchModeOn camera unlockForConfiguration session commitConfiguration AVCaptureDeviceInput camera_input AVCaptureDeviceInput deviceInputWithDevice.. AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance if camera hasTorch if torch if camera isTorchModeSupported AVCaptureTorchModeOn camera setTorchMode AVCaptureTorchModeOn else if camera isTorchModeSupported AVCaptureTorchModeOff camera setTorchMode..
|