铬嵌入式框架无法使用getDisplayMedia访问系统音频
是否可以捕获系统屏幕&带有铬嵌入式框架的音频使用getUsermedia
或getDisplayMedia
?到目前为止,我设法获得了系统的视频流,但是我无法获得音频捕获的工作。
在标准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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是由。
使用键
运行您的应用程序 - 启用-Chrome-runtime
或setchrome_runtime
cef设置为true
(1)。This is supported with the Chrome runtime.
Run your app with the key
--enable-chrome-runtime
or setchrome_runtime
CEF setting totrue
(1).