BlobEvent()

The BlobEvent() constructor returns a newly created BlobEvent object with an associated Blob.

Syntax

new BlobEvent(type, options)

Parameters

type

A string with the name of the event. It is case-sensitive and browsers always set it to dataavailable.

options

An object that, in addition of the properties defined in Event(), can have the following properties:

data

The Blob associated with the event.

timecode

A DOMHighResTimeStamp to be used in initializing the blob event.

Return value

A new BlobEvent object.

Specifications

Specification
MediaStream Recording
# dom-blobevent-blobevent

Browser compatibility

BCD tables only load in the browser

See also