Reputation: 163438
I'd like to use the Chrome off-screen tab capture API in my extension. So, I worked up a manifest with the tabCapture
permission, and some code to try it out:
chrome.tabCapture.captureOffscreenTab('http://example.com', {
audio: true,
video: true
}, function () {
console.log(arguments);
});
Unfortunately, I get this error on my console:
Unchecked runtime.lastError while running tabCapture.captureOffscreenTab: Extension is not whitelisted for use of the unstable, in-development chrome.tabCapture.captureOffscreenTab API.
How can I whitelist my extension?
I found a bug report where there was an ask to use _api_features.json
rather than hard-coded extension IDs, but I couldn't find that file.
Upvotes: 2
Views: 2022
Reputation: 163438
@wOxxOm answered this question!
Snag the ID of the extension on chrome://extensions
. Run Chrome like so:
chrome.exe --whitelisted-extension-id=abcdefghijklmnopqrstuvwxyz
It works great!
Upvotes: 5