iPhone 4.0问题.. MPMoviePlayerViewController,AVAudio API [英] iPhone 4.0 problem.. MPMoviePlayerViewController , AVAudio APIs

查看:56
本文介绍了iPhone 4.0问题.. MPMoviePlayerViewController,AVAudio API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆