W3cubDocs

/Haxe JavaScript

MediaRecorder

package js.html

extends EventTarget

Available on js

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 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.

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

static isTypeSupported (type:String):Bool

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/MediaRecorder.html