XAML 浏览器应用程序中是否允许录制音频

发布于 2024-07-30 19:33:45 字数 167 浏览 4 评论 0原文

我正在寻找从客户计算机执行录音的方法。 我偶然发现了 XAML 浏览器应用程序 - XBAP,我想确定是否有可能使用它进行录音?

I am searching ways to perform audio recording from the client's computer. I have stumbled upon XAML Browser Applications - XBAPs, and I want to make sure, is it possible to perform audio recording using it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑叹一世浮沉 2024-08-06 19:33:45

如果您尝试以部分信任方式运行 XAML 浏览器应用程序,那么答案是否定的。

要使用 .Net 录制音频,当前唯一的方法是使用 Interop 方法,根据版本使用 Windows API for WaveIn 或类似技术应用程序运行所在的窗口数量。

此链接介绍了 Windows Presentation Foundation 安全沙箱 http://msdn.microsoft.com /en-us/library/aa480229.aspx - 相关引用;

现有的互操作方法/属性
启用与非托管代码的互操作
未在部分信任中启用(对于
例如 WindowInteropHelper)。 这
这里的理由是使用这些
类不是部分的场景
信任。

If you attempt to run the XAML Browser Application in partial trust, then the answer is No.

To record audio using .Net, the only current method is to use Interop methods, to use the Windows API's for WaveIn or similar technology based on the version of windows the application is running on.

This link explains the Windows Presentation Foundation Security Sandbox http://msdn.microsoft.com/en-us/library/aa480229.aspx - Relevant quote;

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文