iPhone 4.0 problem.. MPMoviePlayerViewController , AVAudio APIs

回眸只為那壹抹淺笑 提交于 2019-12-12 03:46:42

问题


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.



来源:https://stackoverflow.com/questions/3233723/iphone-4-0-problem-mpmovieplayerviewcontroller-avaudio-apis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!