The MediaRecorder interface of the MediaStream Recording API provides functionality to easily record media. It is created by the invocation of the MediaRecorder() constructor.

Documentation MediaRecorder by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Constructor

new (node:AudioNode, output:Int = 0, ?options:MediaRecorderOptions)

new (stream:MediaStream, ?options:MediaRecorderOptions)

Throws:

null

DOMError

Variables

read onlymimeType:String

Returns the MIME type that was selected as the recording container for the MediaRecorder object when it was created.

read onlystate:RecordingState

Returns the current state of the MediaRecorder object (inactive, recording, or paused.)

read onlystream:MediaStream

Returns the stream that was passed into the constructor when the MediaRecorder was created.

Methods

pause ():Void

Throws:

null

DOMError

requestData ():Void

Throws:

null

DOMError

resume ():Void

Throws:

null

DOMError

start (?timeSlice:Int):Void

Throws:

null

DOMError

stop ():Void

Throws:

null

DOMError

Static methods

Inherited Variables

Inherited Methods

Defined by EventTarget

addEventListener (type:String, listener:Function, capture:Bool = false):Void

addEventListener (type:String, listener:EventListener, capture:Bool = false, ?wantsUntrusted:Bool):Void

Throws:

null

DOMError

dispatchEvent (event:Event):Bool

Throws:

null

DOMError

removeEventListener (type:String, listener:Function, capture:Bool = false):Void

removeEventListener (type:String, listener:EventListener, capture:Bool = false):Void

Throws:

null

DOMError