Skip to Content
Platform.Ontology

MediaRecorder

Records a camera, mic or screen stream to a file in the page.

Works without askingCamera, mic and screenCaptureWeb browsersWhile you use it

In one line

Can save a camera, mic or screen stream to a file, once you allowed it

Records a camera, mic or screen stream to a file in the page.

Turns a live stream into stored audio or video. Needs a stream the person already allowed; the point is the site can keep a copy, upload it, or hold it in memory.

What it can and can't do

What the user does: You click Record on a page that already has camera, mic or screen access

It can

  • Record video or audio from a stream you already allowed
  • Save the recording in the page and offer it to download
  • Upload the recording to the site's servers
  • Stop and start recording while the tab stays open

It cannot

  • Record anything without an allowed camera, mic or screen share first
  • Record sources you did not allow
  • Show its own prompt; the only prompt is for the camera, mic or screen
  • Keep recording once the source stops or the tab closes

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported472015-12-01None
EdgeSupported792020-01-15None
FirefoxSupported252013-10-29None
SafariSupported14.12021-04-26None
Safari on iPhoneSupported142020-09-16None
Chrome on AndroidSupported472015-12-02None
Samsung InternetSupported5.02016-12-15None

How a site asks for it

APInew MediaRecorder(stream, {mimeType, videoBitsPerSecond}); start(timeslice); ondataavailable
Browser compat keysapi.MediaRecorder
How access is grantednone
What the user seesNo prompt of its own; permission comes from the source stream.
Needs a secure context (HTTPS)Yes
Needs a user gestureNo
How long it lastsFollows the stream grant
How to take it backStop the tracks or stop the recorder
Inside an iframeFrames inherit stream permissions

Typical flow

  1. Get a MediaStream (camera, mic, screen)
  2. new MediaRecorder(stream)
  3. start(timeslice)
  4. ondataavailable gives Blob chunks

Data you get

What comes back: Encoded audio or video chunks
Shape: binary
How often: every timeslice ms (default 0, one blob at stop)

FieldTypeUnitRangePrecision
mimeTypestringMIMEvideo/webm, audio/webm, video/mp4, audio/oggbrowser dependent
videoBitsPerSecondintegerbits per second100 kbps to about 25 Mbps1

Technical limits

  • Cannot record without a stream
  • Limited to memory and quota
  • Container format differs per browser

The story

What it is

Lets a page record a live camera, mic or screen stream and keep it as a file.

For you

You do not see a prompt for this itself. It only works on a stream you already allowed, such as your camera. If the site records, you may see a red dot or a Recording note, but it is not required.

For makers

Recording turns a live moment into a product: a saved message, a replay, an upload for later review. It also lets a maker keep a copy of calls for training and compliance. Because it runs in the browser, there is no extra app to build or ship.

Where you see it

TypeExampleApps
videoIn Loom or a similar tool, you press Record, speak and share your tab, and the page saves it as a video file you can send.Loom, Screencastify
messagingA voice note button in a web chat records your voice from the mic and sends it as a short audio clip.WhatsApp Web, Telegram Web
gamesA browser game lets you press a key to record your last 30 seconds of play, and the page makes a clip to share.None named
educationA language app records you saying a phrase, then plays it back next to the native speaker so you can compare.Duolingo, Babbel
enterpriseA sales call site records the call in the browser and uploads it for coaching, when the host turns recording on.Gong, Zoom web
securityA video ID check records a short selfie clip and sends it to a server to confirm you are a live person.Persona, Onfido
creativeA podcast tool records your mic locally at high quality, then uploads the file after the show, so a bad connection does not ruin it.Riverside, Descript

Risks

  • Copy of a call kept without everyone's knowledge
  • Recordings stored on a vendor server

What the platform says

  • Mozilla: MediaRecorder. Developer docs show how a page can record audio or video streams into chunks and save or upload them.

Good uses and abuse

Legitimate uses

  • Voice notes
  • Screen recordings

Known abuse

  • Persistent hidden recording after consent

Scores

ScoreValueMeaning
Sensitivity3 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bitsNot ratedRough identifying entropy, when known

History

  • 2021-01, Safari 14.1: MediaRecorder ships in Safari
  • 2025-09, Safari 26: ALAC and PCM recording formats

Sources

How well checked: Based on official documentation.

On this page