Skip to content

Add offscreen user media recording sample#1717

Merged
patrickkettner merged 1 commit into
mainfrom
offscreen-user-media
Jul 18, 2026
Merged

Add offscreen user media recording sample#1717
patrickkettner merged 1 commit into
mainfrom
offscreen-user-media

Conversation

@patrickkettner

Copy link
Copy Markdown
Collaborator

Adds cookbook.offscreen-user-media: records microphone audio in an offscreen document. getUserMedia in an offscreen document cannot show a permission prompt, so a regular extension page opened in a tab grants mic access to the extension origin first; the popup then drives recording and offers the result for playback and download. Fixes #821. Thanks to @aakash232, whose #1056 worked out the permission approach this builds on.

records microphone audio in an offscreen document. getUserMedia there
cannot show a permission prompt, so a regular extension page opened in a
tab grants mic access to the extension origin first. the popup drives
start/stop and offers the finished recording for playback and download.
@patrickkettner
patrickkettner merged commit e715a8f into main Jul 18, 2026
12 checks passed
@patrickkettner
patrickkettner deleted the offscreen-user-media branch July 18, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MV3 user's mic and cam permissions using iframe

1 participant