“Requested device not found” when using chrome.tabCapture.capture
问题 Problem I want to capture the audio output of a tab automatically. I'm currently thinking of doing this using Puppeteer (headful), by loading an extension that uses chrome.tabCapture.capture . From my Puppeteer script, I evaluate code within the extensions background.js to get the tab capture started. However, chrome.runtime.lastError.message is set to Requested device not found . The extension works as expected outside of Puppeteer and in a Chrome browser. Any idea why I'm getting Requested