BlobEvent: BlobEvent() constructor
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
Blobassociated with the event. timecodeOptional-
A
DOMHighResTimeStampto be used in initializing the blob event.
Return value
A new BlobEvent object.
Specifications
| Specification |
|---|
| MediaStream Recording # dom-blobevent-blobevent |
Browser compatibility
| desktop | mobile | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
BlobEvent() constructor | |||||||||||
See also
- The
BlobEventinterface it belongs to.