简体   繁体   English

iOS-AVQueuePlayer无法播放歌曲,有时会崩溃应用程序,当我使用移动数据时

[英]iOS - AVQueuePlayer is not playing the songs and sometimes it is crashing the application When i use mobile data

In my Application, playing multiple songs by using AVQueuePlayer through NSURLs. 在我的应用程序中,通过NSURL使用AVQueuePlayer播放多首歌曲。 Everything is working fine, when i use wifi to play the songs. 当我使用wifi播放歌曲时,一切工作正常。 If i use mobile data the songs are not playing and some times app is crashing. 如果我使用移动数据,则歌曲无法播放,有时应用程序崩溃。 Please help me out. 请帮帮我。

Finally found the solution, the problem is in server side not in code. 终于找到了解决方案,问题出在服务器端而不是代码中。 Uploaded songs are playing by wifi, but not playing if we use mobile data. 上载的歌曲通过wifi播放,但如果我们使用移动数据,则不会播放。 This is because of server bandwidth problem. 这是由于服务器带宽问题。 Moved all songs to another server, now songs are playing perfectly by using both wifi and mobile data. 将所有歌曲移至另一台服务器,现在通过使用wifi和移动数据,歌曲可以完美播放。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM