的MPMoviePlayerController不会在后台播放时,下一个网址 [英] MPMovieplayerController doesn't play next URL when in background

查看:113
本文介绍了的MPMoviePlayerController不会在后台播放时,下一个网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发iOS应用程序中,我使用的MPMoviePlayerController流.mp3文件。
当一个文件就完成了打我拿下URL和播放文件。
所有工作在前景很好,但是当我移动应用背景当前歌曲播放以及但是当它结束后,没有得到执行起着下一首歌曲的方法。

I am developing an iOS app in which I am streaming .mp3 files using MPMoviePlayerController. When playing of one file completes I take next url and play the file. All works great in foreground but when I move the app to background the current song plays well but when it finishes, the method which plays the next song doesn't get executed.

我查了计算器类似的问题,但解决方案似乎并没有为我工作。

I checked similar questions on stackoverflow but the solutions doesn't seem to work for me.

在正确的方向Any指针将是非常有益的。

Any pointer in the right direction will be very helpful.

在此先感谢!

修改:在不同的设备上测试应用我发现功能正在开发的iOS 5.1,但不是在的iOS 4.3。所以我creted起着上完成previous一个本地文件的示例应用程序,该应用程序正确地完成它的工作在iOS中的所有版本,即使在background.Its现在已经变得更加扑朔迷离我。

EDIT :On testing the app on different devices I found that the functionality is working on iOS 5.1 but not in iOS 4.3. So I creted a sample app which plays a local file on finishing the previous one and that app does its job correctly in all versions of iOS even when in background.Its now have become more confusing for me.

推荐答案

我不能使用的MPMoviePlayerController做到这一点。

I couldn't do it using MPMoviePlayerController.

最后使用 AudioStreamer

现在我的应用程序工作正常。

My app is working fine now.

感谢马特!

这篇关于的MPMoviePlayerController不会在后台播放时,下一个网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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