iPhone 正在接收音频流时如何从 Wi-Fi 更改为 3G?
我的 iPhone 应用程序通过 mms:// 协议播放 wma 音频流。
当 Wi-Fi 连接断开时,它不会切换到 3G 来继续流式传输。我有足够的缓冲区可以再玩 15 秒(我尝试增加缓冲区大小,但无论如何它都会停止)。
我可以实现什么样的机制才能让播放不会停止并且 iPhone 从 Wi-fi 变为 3G?
在其他帖子中,我看到它应该自动执行此操作,但就我而言,它不会,因为它是通过彩信协议实现的 wma。
谢谢!
My iPhone application plays a wma audio stream over the mms:// protocol.
When the Wi-Fi connection drops it won't switch to 3G to continue streaming. I have enough buffer to play for another 15 seconds (I tried to increase the buffer size, but it will stop anyway).
What sort of mechanism can I implement so the playing won't stop and the iPhone changes from Wi-fi to 3G?
In other posts I saw that it should do it automatically, but in my case it doesn't, because its wma over mms protocol.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可能在说我的屁股,但是,您可以尝试在连接失败时检测连接中的错误。并从缓冲位置重新启动流,以便您可以恢复下载。如果互联网出现故障,iPhone 应重新连接以满足您对彩信提要的新请求。
I may be talking out my butt, however, you could try detecting the Error from the connection when it fails. and restart the stream from your buffered location so you can resume the download. If the internet is down the iPhone should reconnect it to accommodate your new request for the mms feed.