user390039
user390039

Reputation: 23

iPhone 4.0 problem.. MPMoviePlayerViewController , AVAudio APIs

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!!

Upvotes: 0

Views: 995

Answers (1)

Franci Penov
Franci Penov

Reputation: 76001

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.

Upvotes: 1

Related Questions