MediaRecorder: start event

The start event is fired when MediaRecorder.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 = function() {
    mediaRecorder.start();
    console.log("recorder started");
  }

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

...

Properties

None.

Specifications

No specification found

No specification data found for api.MediaRecorder.start_event.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

No compatibility data found for api.MediaRecorder.start_event.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.

See also