iPhone 4.0问题.. MPMoviePlayerViewController,AVAudio API [英] iPhone 4.0 problem.. MPMoviePlayerViewController , AVAudio APIs
问题描述
我正在制作iPhone程序.主要功能是播放视频文件和录制声音.
I'm making iphone program. The main function is playing video files, and recording sound.
OS 3.1.3版本很好.但是iPhone 4.0出了问题!
OS 3.1.3 version is fine. But iPhone 4.0 makes problem!!
当我执行视频(MPMoviePlayerController
)并连续录制声音(AVAudioRecorder
)时,AVAudioRecorder
不起作用....
When I executed playing video (MPMoviePlayerController
) and continuously recording sound (AVAudioRecorder
), AVAudioRecorder
doesn't work....
无记录..! ; o;
No recording..! ;o;
有人帮助!!
推荐答案
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.
这篇关于iPhone 4.0问题.. MPMoviePlayerViewController,AVAudio API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!