MPMoviePlayerController-处理电话
我正在使用MPMoviePlayerController播放视频. 接到电话时,我想暂停,待他结束时,我想继续播放视频. 我在搜索中找不到相关的解决方案. 这有可能吗?
I'm using MPMoviePlayerController to play a video. When a call comes, i want to pause and when he completes, i want to continue the video. I couldn't find relevant solution in my search. Is this something possible?
可以使用AVAudioSessionDelegate"beginInterruption"和"endInterruption"处理中断.但是,当我将会话设置为播放时,根本听不到我的电影播放器声音. 有人知道解决方案吗?
Its possible to handle the interruptions using AVAudioSessionDelegate "beginInterruption" and "endInterruption". But when I am setting the session to play back, my movie player sound is not heard at all. Does any one know the solution?
我们必须在endInterruption之后将会话设置为活动状态.
We've to set the session active after endInterruption.