The MediaRecorder
interface of the MediaStream Recording API provides functionality to easily record media. It is created using the MediaRecorder()
constructor.
Documentation MediaRecorder by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Static methods
Constructor
new(node:AudioNode, output:Int = 0, ?options:Null<MediaRecorderOptions>)
new(stream:MediaStream, ?options:Null<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
start(?timeSlice:Int):Void
Begins recording media; this method can optionally be passed a timeslice
argument with a value in milliseconds. If this is specified, the media will be captured in separate chunks of that duration, rather than the default behavior of recording the media in a single large chunk.
Throws:
null | DOMError |
---|