无法通过https(NAudio)传输音频 [英] Can't stream audio over https (NAudio)
问题描述
在我的项目中,我正在使用NAudio MediaFoundationReader从我的网络服务中读取音频流,它就像 http 上的魅力一样。但是,当Web服务设置为使用http s 时,mediafoundationreader会在NAudio.dll中抛出COMException。
(来自HRESULT的异常:0x80072EFD)
我知道我可以通过将Web服务响应作为MemoryStream来进行修复,将其转换然后播放,但理想情况下我希望这只是指向http(s)://localhost/mysound.wma
有什么建议吗?
In my project I'm reading audiostreams from my web service using NAudio MediaFoundationReader, and it works like a charm over http. However, when the web service is set to use https, mediafoundationreader throws an COMException in NAudio.dll.
(Exception from HRESULT: 0x80072EFD)
I know I can fix this by getting the web service response as a MemoryStream, convert it and then play, but ideally I would like this to work by just pointing to http(s)://localhost/mysound.wma
Any suggestions?
推荐答案
使用Google搜索C#/ .Net错误消息确实有效:查看这些搜索的前两个结果:[ ^ ],[ ^ ]。
非常具体的问题专业的,广泛使用的,第三方.NET工具/库通常在公司/开源组论坛上得到最好的询问/回答,如果有的话。
Using Google to search for C#/.Net error messages really does work: look at the top two results for these searches: [^], [^].
Very specific issues with specialized, widely-used, 3rd. party .NET tools/libraries are often best asked/answered on the company/open-source-group's Forum, if they have one.
这篇关于无法通过https(NAudio)传输音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!