我正在寻找从客户端计算机执行音频录制的方法。我偶然发现了XAML Browser Applications-XBAP,我想确定是否可以使用它进行音频记录?
最佳答案
如果尝试以部分信任的方式运行XAML浏览器应用程序,则答案为“否”。
要使用.Net录制音频,当前的唯一方法是使用Interop方法,以基于运行应用程序的Windows版本使用WaveIn的Windows API或类似技术。
该链接解释了Windows Presentation Foundation Security Sandbox http://msdn.microsoft.com/en-us/library/aa480229.aspx-相关报价;
Interop Methods/properties that exist to enable interop to unmanaged code are not enabled in partial-trust (for example WindowInteropHelper). The rationale here is that using these classes is not a scenario for partial trust.
关于c# - 正在录制XAML浏览器应用程序中允许的音频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1281786/