iPhone 4.0 problem.. MPMoviePlayerViewController ,

2019-09-02 20:31发布

问题:

I'm making iphone program. The main function is playing video files, and recording sound.

OS 3.1.3 version is fine. But iPhone 4.0 makes problem!!

When I executed playing video (MPMoviePlayerController) and continuously recording sound (AVAudioRecorder), AVAudioRecorder doesn't work....

No recording..! ;o;

Somebody help!!

回答1:

Check the useApplicationAudioSession property on MPMoviePlayerController. In iOS 3.1.x, the movie player was always getting its own system provided audio session. In iOS 4.0, it can now share the application session, and that's the default value as well. Try switching that property to NO before starting to play your movie.