Files
Joe Medley 18fed43ed8 Fix typos.
2023-06-06 12:47:45 -07:00
..
2023-06-01 10:51:54 +01:00
2023-06-01 10:51:54 +01:00
2023-06-06 12:47:45 -07:00
2023-06-01 10:51:54 +01:00
2023-06-01 10:51:54 +01:00
2023-06-01 10:51:54 +01:00

chrome.tabCapture

A sample that demonstrates how to use the chrome.tabCapture API.

Overview

In this sample, the chrome.tabCapture API captures the contents of the active tab. The captured stream is displayed in a new window.

Implementation Notes

Call tabCapture.getMediaStreamId() to capture specific tabs.

The targetTabId and consumerTabId are obtained in the Service Worker, and then passed to the receiver page through the tabs.sendMessage() method.

See the Audio recording and screen capture guide for a more detailed implementation.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Click the extension's action icon.