UIImagePickerController AVAudioPlayer

When I open the UIImagePickerController , I can display the input stream of the device’s camera.

But when I play AVAudioPlayer with [player play] , then the camera stops working.

How can I handle this?

+6
iphone ios4 uiimagepickercontroller avaudioplayer
source share
1 answer

you cannot, because the UIIMagePickerController controls the sound, you need to use low-level AVFoundation to do this.

checkout AVCam sample code on how to record a movie and add a presentation as a peep, so you stay under the control of audio and can play sound.

+3
source share

All Articles