问题描述
根据铬有音频环回问题。它永远不会在Chrome应用程序中工作。任何人都可以分享一些链接和解释,为什么这不起作用?或者如果可能的话?我试过下面的代码,但桌面音频有很多干扰。
According to https://code.google.com/p/chromium/issues/detail?id=223639 chromium has issues with audio Loopback. and it never works in chrome app. Can anyone share some links and explanation to why is this not working?Or if it is possible? I tried below code but lot of disturbance in desktop audio.
video: {
mandatory: {
chromeMediaSource:'screen',
chromeMediaSourceId: id
}
},
audio: {
mandatory: {
chromeMediaSource: 'system',
chromeMediaSourceId: id,
}
}
多个流被捕获并附加到单个对等连接?
Multiple streams are captured and attached to a single peer connection?
谢谢!
推荐答案
仅限AFAIK 支持音频+标签 。
AFAIK only desktopCapture API are supporting audio+tab.
chromeMediaSource
值必须 desktop
。
video: {
mandatory: {
chromeMediaSource:'desktop',
chromeMediaSourceId: 'sourceIdCapturedUsingChromeExtension'
}
},
audio: {
mandatory: {
chromeMediaSource: 'desktop',
chromeMediaSourceId: 'sourceIdCapturedUsingChromeExtension'
}
}
在 Chrome-Canary 上试用以下演示:
- https://rtcmulticonnection.herokuapp.com/demos/Audio+ScreenSharing.html
但请务必启用 chrome:// flags#tab-for-desktop-share
flag。
However make sure to enable chrome://flags#tab-for-desktop-share
flag.
这篇关于桌面音频捕获不适用于chrome应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!