铬嵌入式框架无法使用getDisplayMedia访问系统音频

发布于 2025-01-28 10:12:03 字数 501 浏览 5 评论 0原文

是否可以捕获系统屏幕&带有铬嵌入式框架的音频使用getUsermediagetDisplayMedia?到目前为止,我设法获得了系统的视频流,但是我无法获得音频捕获的工作。

在标准Chrome中,您可以通过以下方式获得系统音频:

navigator.mediaDevices.getDisplayMedia({ video: true, audio: true })

这将在弹出窗口中导致弹出式勾选复选框以启用音频捕获。该流具有标记为“系统音频”的音轨。

在CEF中,此弹出式dialog不存在(但可以使用启动构成标志跳过)。在Web应用程序中调用getDisplayMedia时,您会获得音频曲目,但该曲目被标记为“假音频”。看来该曲目实际上是麦克风的声音,而不是系统音频的声音。

知道为什么这不起作用吗?它实际上是在CEF核心中实现的吗?我找不到有关此信息的任何信息。提前致谢!

Is it possible to capture system screen & audio with chromium embedded framework using getUserMedia or getDisplayMedia? I've managed to get a video only stream of the system so far, but i cannot get audio capture to work.

In standard Chrome you can get the system audio by using:

navigator.mediaDevices.getDisplayMedia({ video: true, audio: true })

This results in a popup where you can tick a checkbox to enable audio capture. The stream has an audio track labeled as "System Audio".

In cef this popup-dialog does not exist (but can be skipped using a launch-config flag). When calling getDisplayMedia in the web-application, you get an audio track aswell, but the track is labeled as "Fake audio". It seems that this track is actually the sound of a microphone and not the system audio.

Any idea why this does not work? Is it actually implemented in the Cef core? I wasn't able to find any info on this. Thanks in advance!

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

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

发布评论

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

评论(1

_蜘蛛 2025-02-04 10:12:03

这是由

使用键运行您的应用程序 - 启用-Chrome-runtime或set chrome_runtime cef设置为true(1)。

This is supported with the Chrome runtime.

Run your app with the key --enable-chrome-runtime or set chrome_runtime CEF setting to true (1).

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