1
我有一个MPMoviePlayerController的问题。我用来玩shoutcast。 t被设计为当应用程序进入背景时播放,并且一切正常。问题是,当它在后台,我得到一个来电。在这种情况下,流暂停,但通话结束后不会返回。MPMoviePlayerController和来电
我有一个MPMoviePlayerController的问题。我用来玩shoutcast。 t被设计为当应用程序进入背景时播放,并且一切正常。问题是,当它在后台,我得到一个来电。在这种情况下,流暂停,但通话结束后不会返回。MPMoviePlayerController和来电
我曾在我的应用程序中使用MPMoviePlayerviewController进行流媒体直播音频播放。
它对我来说工作得很好。并且我的信息流也暂停&也会在通话结束后回来。我有
没问题。我在做类似声明会话属性的一些变化像
下面在我的代码,我播放视频:
NSError *setCategoryErr = nil;
NSError *activationErr = nil;
[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: &setCategoryErr];
[[AVAudioSession sharedInstance] setActive: YES error: &activationErr];
[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
UIBackgroundTaskIdentifier newTaskId = UIBackgroundTaskInvalid;
newTaskId = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:NULL];
而且我觉得在MPMoviePlayerviewController它在内置功能,通话流后自动回来...我认为。 – Vishal
MP endInterruptionFromInterruptor ::在1.000000恢复播放我有这个错误... – Flexoid