user2801184
user2801184

Reputation: 329

Desktop Audio Capture Not working for chrome app

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?

Thanks!

Upvotes: 1

Views: 1845

Answers (1)

Muaz Khan
Muaz Khan

Reputation: 7236

AFAIK only desktopCapture API are supporting audio+tab.

chromeMediaSource value must be desktop.

video: {
  mandatory: {                
      chromeMediaSource:'desktop',
      chromeMediaSourceId: 'sourceIdCapturedUsingChromeExtension'
  }
},
audio: {
  mandatory: {
    chromeMediaSource: 'desktop',
    chromeMediaSourceId: 'sourceIdCapturedUsingChromeExtension'
  }
}

Try following demo on Chrome-Canary:

However make sure to enable chrome://flags#tab-for-desktop-share flag.

Upvotes: 1

Related Questions