用于后台播放的流音频播放器 [英] streaming audio player for background play
问题描述
当前,我正在开发一款需要播放流音频的应用.我正在使用mpmovieplayercontroller
播放流音频.对我来说很好.但是,当设备进入睡眠模式或进入背景模式时,音频将停止.我也想在这两种模式下播放音频.如何在这两种模式下播放流音频?我也对其他玩家开放.
Currently, I am developing an app in which there is need of play an streaming audio. I am using mpmovieplayercontroller
to play streaming audio. It is working fine for me. However, the audio is stopping when the device goes into sleeping mode or enters into background mode. I want to play audio also in these two mode condition. How can I play streaming audio in these two modes? I am also open to another player.
推荐答案
我将查看Matt Gallagher的Audio Streamer.我在音频流应用程序中使用它,效果非常好.它还支持后台流式传输,例如您要查找的内容: https://github.com/mattgallagher/AudioStreamer
I'd check out Matt Gallagher's Audio Streamer. I use it in an audio streaming application and it works fantastically. It also supports background streaming, like what you're looking for: https://github.com/mattgallagher/AudioStreamer
这篇关于用于后台播放的流音频播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!