本文介绍了无法通过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?

推荐答案


这篇关于无法通过https(NAudio)传输音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 15:01