How to use tabCapture api after the manifest v3

222 views
Skip to first unread message

Darwin Swartz

unread,
Mar 16, 2023, 7:40:45 AM3/16/23
to Chromium Extensions
Hello, In the manifest version 3, I tried using tabCapture api in background script and content script, but failed to implement that. It returned type Error for the tabCatpure in both the situations.
What is the best solution to record the current tab of the user if the tabCapture api is not working after the version 3?

vaibhav agrawal

unread,
Mar 20, 2023, 7:23:49 AM3/20/23
to Chromium Extensions, Darwin Swartz
   chrome.tabs.captureVisibleTab(
          null,
          null,
          function(dataUrl)
          {
              console.log(dataUrl);
            }
          }
      );

Darwin Swartz

unread,
Mar 20, 2023, 8:06:20 AM3/20/23
to Chromium Extensions, vaibhav agrawal, Darwin Swartz
captureVisibleTab only allows to capture the screenshot of the current tab

vaibhav agrawal

unread,
Mar 22, 2023, 8:03:09 AM3/22/23
to Chromium Extensions, Darwin Swartz

 chrome.desktopCapture Use this
Reply all
Reply to author
Forward
0 new messages