MediaRecorder class

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

EventTarget

MediaRecorder

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

MediaRecorder(MediaStream stream, [MediaRecorderOptions? options])
factory

Properties

audioBitrateMode BitrateMode

Available on MediaRecorder, provided by the PropsMediaRecorder extension

no setter
audioBitsPerSecond int

Available on MediaRecorder, provided by the PropsMediaRecorder extension

no setter
hashCode int
The hash code for this object.
no setterinherited
mimeType String

Available on MediaRecorder, provided by the PropsMediaRecorder extension

no setter
ondataavailable EventHandlerNonNull<Event>?

Available on MediaRecorder, provided by the PropsMediaRecorder extension

getter/setter pair
onerror EventHandlerNonNull<Event>?

Available on MediaRecorder, provided by the PropsMediaRecorder extension

getter/setter pair
onpause EventHandlerNonNull<Event>?

Available on MediaRecorder, provided by the PropsMediaRecorder extension

getter/setter pair
onresume EventHandlerNonNull<Event>?

Available on MediaRecorder, provided by the PropsMediaRecorder extension

getter/setter pair
onstart EventHandlerNonNull<Event>?

Available on MediaRecorder, provided by the PropsMediaRecorder extension

getter/setter pair
onstop EventHandlerNonNull<Event>?

Available on MediaRecorder, provided by the PropsMediaRecorder extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state RecordingState

Available on MediaRecorder, provided by the PropsMediaRecorder extension

no setter
stream MediaStream

Available on MediaRecorder, provided by the PropsMediaRecorder extension

no setter
videoBitsPerSecond int

Available on MediaRecorder, provided by the PropsMediaRecorder extension

no setter

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void

Available on MediaRecorder, provided by the PropsMediaRecorder extension

removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

requestData() → void

Available on MediaRecorder, provided by the PropsMediaRecorder extension

resume() → void

Available on MediaRecorder, provided by the PropsMediaRecorder extension

start([int? timeslice]) → void

Available on MediaRecorder, provided by the PropsMediaRecorder extension

stop() → void

Available on MediaRecorder, provided by the PropsMediaRecorder extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isTypeSupported(String type) bool