iPhone-使用MPMoviePlayerViewController流音频 [英] iPhone - Streaming audio with MPMoviePlayerViewController
问题描述
我正在使用MPMoviePlayerViewController从URL"http://ios-audio.q-music.be/audio.m3u8"中流式传输音频. 它的演奏很好. 但是,当我单击主页"按钮时,该应用程序将进入后台并停止流式传输. 当我再次启动该应用程序时,它将再次开始流式传输.
I'm using MPMoviePlayerViewController to stream an audio from the URL "http://ios-audio.q-music.be/audio.m3u8". Its playing well. But when I click "Home" button, the app goes into background and stops streaming. When I start the app again, it starts streaming again.
当应用程序进入后台时,如何使我的应用程序使用MPMoviePlayerController流音频. 还是我必须使用其他框架?
How can I make my app stream the audio using MPMoviePlayerController when the app goes to background. Or do I've to use other frameworks?
推荐答案
好吧,我使用 https://github.com/mattgallagher/AudioStreamer 用于流式传输音频,它将在后台运行.
Well I use https://github.com/mattgallagher/AudioStreamer for streaming audio, It will work in background.
这篇关于iPhone-使用MPMoviePlayerViewController流音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!