package js.html
extends EventTarget
Available on jsThe
MediaRecorder
interface of the MediaStream Recording API provides functionality to easily record media. It is created by the invocation of theMediaRecorder()
constructor.Documentation MediaRecorder by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (node:AudioNode, output:Int = 0, ?options:MediaRecorderOptions)
new (stream:MediaStream, ?options:MediaRecorderOptions)
Throws:
null |
DOMError |
---|
read only mimeType:String
Returns the MIME type that was selected as the recording container for the MediaRecorder
object when it was created.
ondataavailable:Function
onerror:Function
onstart:Function
onstop:Function
onwarning:Function
read only state:RecordingState
Returns the current state of the MediaRecorder
object (inactive
, recording
, or paused
.)
read only stream:MediaStream
Returns the stream that was passed into the constructor when the MediaRecorder
was created.
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 isTypeSupported (type:String):Bool
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/MediaRecorder.html