# Screen recorder browser plugin

> The Studiobase Chrome extension: click once to record the current tab with no share prompt, a floating overlay with Pause/Stop, optional mic, and one-click save straight to your B-Roll library.

The **Studiobase screen recorder plugin** is a Chrome/Edge extension that records the current browser tab with **no "choose what to share" prompt** — one click starts it, a floating control bar rides on top of your page, and when you stop, the recording **saves itself to your Studiobase account as a b-roll**. This is the Loom-style experience: it's possible because a browser *extension* can use the privileged `tabCapture` API, which a normal web page can't.

> **STUDIO VS PLUGIN — WHICH DO I USE?:** The [in-app studio](/docs/screen-recorder/studio) needs no install and works everywhere, but shows the browser's one share prompt per recording. The plugin needs a one-time install, then records the current tab with **zero prompts** and a floating overlay — and only ever asks for the mic once. Same result: a b-roll saved to your library.

## Install the plugin

1. **Download the extension** — Grab the plugin folder from **Settings → Screen recorder plugin** in the app (or the release zip). Unzip it somewhere you'll keep it.
2. **Open Chrome extensions** — Go to `chrome://extensions` (Edge: `edge://extensions`). Turn on **Developer mode** (top-right).
3. **Load unpacked** — Click **Load unpacked** and select the unzipped extension folder. The Studiobase recorder icon appears in your toolbar.
4. **Pin it** — Click the puzzle-piece icon in the toolbar and pin **Studiobase Screen Recorder** so it's always one click away.
5. **Sign in to Studiobase** — Make sure you're logged in to Studiobase in the same browser — that's how the plugin knows which account to save your recordings to.

> **STEP-BY-STEP FILE INCLUDED:** The extension ships with an **INSTALL-IN-CHROME.md** and **README.md** covering install, pinning, permissions and troubleshooting — the exact same steps as above, kept next to the code.

## Record with the plugin

1. **Open the page you want to record** — Navigate the tab to your product, dashboard, or feature.
2. **Click the plugin** — Click the Studiobase recorder icon. Choose **Current tab** (no prompt) or **Whole screen**, toggle **Microphone**, and hit **Start**.
3. **Use the floating controls** — A small draggable bar appears on the page with a live timer, **Pause/Resume**, **Stop** and **Cancel** — it follows you as you click through the tab.
4. **Stop** — Click **Stop** on the overlay. The plugin finalizes the recording and uploads it to your Studiobase workspace.
5. **It's in your B-Roll list** — Open **All media → B-roll** in Studiobase — your recording is already there, tagged `screen-recording`, ready for a Screen Demo, the editor, or a post. No manual upload.

## How the plugin connects to your app

The plugin never handles a login or a password. It rides on the Studiobase session you're **already signed into** in that browser, uploads the finished recording to your workspace, and Studiobase files it as a b-roll. Here's the path a recording takes:

1. **1 · Capture (tabCapture)** — You click the plugin → after that click, the extension's service worker calls `chrome.tabCapture` to grab the current tab's video + audio. No "choose what to share" dialog — the click is the permission.
2. **2 · Record (offscreen document)** — The stream is handed to a hidden offscreen page that runs `MediaRecorder`, optionally mixing your microphone in. This produces a WebM video in memory.
3. **3 · Overlay (content script)** — A content script draws the floating Pause/Stop/timer bar on your page and relays your clicks back to the recorder.
4. **4 · Upload (your session)** — On stop, the extension POSTs the WebM to Studiobase's media API using your existing signed-in session cookie — so it lands in *your* workspace, authenticated as you, with no separate login.
5. **5 · Save as b-roll** — Studiobase stores it in the unified [media library](/docs/media/library) with `media_type: b-roll` and a `screen-recording` tag. It now shows in **All media → B-roll** and in every b-roll picker.

| Extension piece | What it does |
| --- | --- |
| **Popup** | The Start screen — tab vs whole-screen, mic toggle. |
| **Service worker** | Requests the tab capture stream and orchestrates recording + upload. |
| **Offscreen document** | Runs MediaRecorder (MV3 requires this for background recording) and mixes the mic. |
| **Content script** | The draggable floating control bar on your page. |
| **Studiobase media API** | Receives the upload over your logged-in session and saves it as a b-roll. |

> **YOU MUST BE SIGNED IN:** Because the plugin authenticates as *you* via your browser session, keep Studiobase signed in in the same browser. If a recording doesn't appear, open Studiobase, confirm you're logged in, and record again. The plugin never sees or stores your password.

## Permissions the plugin asks for

| Permission | Why | When |
| --- | --- | --- |
| **Tab capture** | To record the current tab's video and audio. | Granted by your click on Start — no separate prompt. |
| **Microphone** | Optional narration mixed into the recording. | One-time browser prompt the first time you enable the mic. |
| **Studiobase host access** | To upload the finished recording to your workspace. | Declared at install; used only to save your recordings. |

## Troubleshooting

- **Nothing saved after I stopped** — make sure you're signed in to Studiobase in the same browser, then record again. The upload uses your session.
- **No mic in the recording** — toggle **Microphone** on *before* Start, and allow mic access when the browser asks.
- **"tabCapture" isn't available** — tab capture works on normal web pages, not on `chrome://` pages, the Web Store, or PDFs. Open your actual product page first.
- **The icon is missing** — click the toolbar puzzle-piece and pin **Studiobase Screen Recorder**.

## What's next

- [Record your screen (studio)](/docs/screen-recorder/studio) — The no-install, in-app recorder.
- [The media library](/docs/media/library) — Where your recordings save and how to reuse them.
- [Templates overview](/docs/templates/overview) — Turn a recording into a branded Screen Demo.
