BlobEvent: BlobEvent() constructor
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2020.
Syntax
js
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
Optional-
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
See also
- The
BlobEvent
interface it belongs to.