cuốn sách gpt4 ai đã làm

iphone - iOS:在 UIWebView 中从 URL 加载音频时出现问题

In lại Tác giả: Walker 123 更新时间:2023-11-28 23:16:33 hai mươi bốn 4
mua khóa gpt4 Nike

我正在将 MP3 播客流加载到 UIWebView 中,如下所示:

- (void)viewDidLoad
{
[super viewDidLoad];

NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL: [NSURL URLWithString:@"http://localhost/podcasts/downloader/download.mp3?af=a&f=10109"]];

[webView loadRequest:request];

}

流似乎加载,然后 UIAlert 出现说:

An error occurred while exchanging data. "Plug-in handled load"

流在 QuickTime 中正确加载并播放后立即播放。为什么会出现此警报?

我不希望使用 AVAudioPlayer 来播放流,而是使用 QuickTime。

câu trả lời hay nhất

如果您使用的是 iOS,则 URL 指向本地主机,并且设备上可能没有 Web 服务器。

关于iphone - iOS:在 UIWebView 中从 URL 加载音频时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6131434/

hai mươi bốn 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress