Firefox Tomorrow

web api event

MediaRecorder: start event

View on MDN ↗

The start event of the MediaRecorder interface is fired when start() is called. At this point, the data starts being gathered into a Blob.

Syntax

Use the event name in methods like addEventListener(), or set an event handler property.

addEventListener("start", (event) => { })

onstart = (event) => { }

Event type

A generic Event.

Example

record.onclick = () => {
  mediaRecorder.start();
  console.log("recorder started");
};

mediaRecorder.onstart = () => {
  // do something in response to
  // recording being started
};

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also