目前我正在开发一个应用程序,它将从互联网上播放一个广播电台。我观看了本教程并逐步实现了它。它工作了一段时间,但现在我收到以下错误,该应用程序不会流式传输任何内容
2013-07-20 10:22:40.653 ShqipCom[464:c07] [MPAVController] Autoplay: Enabling autoplay
2013-07-20 10:22:40.668 ShqipCom[464:c07] [MPCloudAssetDownloadController] Prioritization requested for media item ID: 0
2013-07-20 10:22:41.129 ShqipCom[464:c07] [MPAVController] Autoplay: Enabling autoplay
2013-07-20 10:22:41.572 ShqipCom[464:7103] <com.apple.coremedia.networkbuffering> Error '!obj' trying to fetch default input device's sample rate
2013-07-20 10:22:41.574 ShqipCom[464:7103] <com.apple.coremedia.networkbuffering> Error getting audio input device sample rate: '!obj'
2013-07-20 10:22:41.576 ShqipCom[464:7103] <com.apple.coremedia.networkbuffering> AQMEIOManager::FindIOUnit: error '!dev'
2013-07-20 10:22:41.577 ShqipCom[464:5403] <0xb0365000> AQMEIOManager::FindIOUnit: error '!dev'
(lldb)
我触发播放器的 IBAction 看起来像这样
-(IBAction)Play:(id)sender
{
NSString *stream = @"http://www.volksmusiknet.ch/stream.m3u";
NSURL *url = [NSURL URLWithString:stream];
NSURLRequest *urlRequest = [NSUrlRequest requestWithUrl:url];
[WebView loadRequest:urlRequest];
}
也许值得一提的是,在另一个选项卡中,我尝试使用 MPMoviePlayerController 流式传输电视流,可能是播放器存在某种冲突吗?
非常感谢你!
花岗岩