iphone Programming Glossary: settorchmode
Activate the LED for a flashlight app http://stackoverflow.com/questions/3253187/activate-the-led-for-a-flashlight-app defaultDeviceWithMediaType AVMediaTypeVideo if device hasTorch device hasFlash device lockForConfiguration nil device setTorchMode AVCaptureTorchModeOn device setFlashMode AVCaptureFlashModeOn device unlockForConfiguration AVCaptureDeviceInput flashInput..
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.. torch mode 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..
AVAssetWritter does not work with audio http://stackoverflow.com/questions/5200077/avassetwritter-does-not-work-with-audio if camera hasTorch if camera isTorchModeSupported AVCaptureTorchModeOn camera setTorchMode AVCaptureTorchModeOn camera unlockForConfiguration session commitConfiguration AVCaptureDeviceInput camera_input AVCaptureDeviceInput.. if camera hasTorch if torch if camera isTorchModeSupported AVCaptureTorchModeOn camera setTorchMode AVCaptureTorchModeOn else if camera isTorchModeSupported AVCaptureTorchModeOff camera setTorchMode AVCaptureTorchModeOff.. camera setTorchMode AVCaptureTorchModeOn else if camera isTorchModeSupported AVCaptureTorchModeOff camera setTorchMode AVCaptureTorchModeOff camera unlockForConfiguration THank you for any help. iphone objective c ios avfoundation avassetwriter..
|