Liking cljdoc? Tell your friends :D

web.video.MediaRecorder

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

The MediaRecorder interface of the MediaStream Recording API
functionality to easily record media. It is created using the
constructor.
raw docstring

audio-bits-per-secondcljs

(audio-bits-per-second this)

Property.

[Read Only] [Experimental]

The audioBitsPerSecond read-only property of the web.video.MediaRecorder returns the audio encoding bit rate in use.

var audioBitsPerSecond = MediaRecorder.audioBitsPerSecond

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/audioBitsPerSecond

Property.

[Read Only]
[Experimental]

The audioBitsPerSecond read-only property of the `web.video.MediaRecorder`
returns the audio encoding bit rate in use.

`var audioBitsPerSecond = MediaRecorder.audioBitsPerSecond`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/audioBitsPerSecond`
sourceraw docstring

constructorcljs

(constructor & args)

Constructor.

The MediaRecorder() constructor creates a new web.video.MediaRecorder object that will record a specified web.streams.MediaStream.

stream The web.streams.MediaStream that will be recorded. This source media can come from a stream created using navigator.mediaDevices.getUserMedia() or from an <audio>, <video> or <canvas> element.

options Optional

A dictionary object that can contain the following properties:

mimeType: A MIME type specifying the format for the resulting media; you may simply specify the container format (the browser will select its preferred codecs for audio and/or video), or you may codecs and/or the profiles parameter to provide detailed information about which codecs to use and how to configure them. Applications can check in advance if a mimeType is supported by the user agent by calling MediaRecorder.isTypeSupported(). audioBitsPerSecond: The chosen bitrate for the audio component of the media. videoBitsPerSecond: The chosen bitrate for the video component of the media. bitsPerSecond: The chosen bitrate for the audio and video components of the media. This can be specified instead of the above two properties. If this is specified along with one or the other of the above properties, this will be used for the one that isn't specified.

If bits per second values are not specified for video and/or audio, the default adopted for video is 2.5Mbps, while the audio default is adaptive, depending upon the sample rate and the number of channels.

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder

Constructor.

The MediaRecorder() constructor creates a new `web.video.MediaRecorder` object that will record a specified `web.streams.MediaStream`.

stream
The `web.streams.MediaStream` that will be recorded. This source media can come from a stream created using `navigator.mediaDevices.getUserMedia()` or from an `<audio>`, `<video>` or `<canvas>` element.

options Optional


A dictionary object that can contain the following properties:


mimeType: A MIME type specifying the format for the resulting media; you may simply specify the container format (the browser will select its preferred codecs for audio and/or video), or you may `codecs` and/or the profiles parameter to provide detailed information about which codecs to use and how to configure them. Applications can check in advance if a mimeType is supported by the user agent by calling `MediaRecorder.isTypeSupported()`.
audioBitsPerSecond: The chosen bitrate for the audio component of the media.
videoBitsPerSecond: The chosen bitrate for the video component of the media.
bitsPerSecond: The chosen bitrate for the audio and video components of the media. This can be specified instead of the above two properties. If this is specified along with one or the other of the above properties, this will be used for the one that isn't specified.



If bits per second values are not specified for video and/or audio, the default adopted for video is 2.5Mbps, while the audio default is adaptive, depending upon the sample rate and the number of channels.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder`
sourceraw docstring

ignore-muted-mediacljs

(ignore-muted-media this)

Property.

[Experimental]

The ignoreMutedMedia property of the web.video.MediaRecorder indicates whether the MediaRecorder instance will record input, the input MediaStreamTrack is muted.

var boolean = MediaRecorder.ignoreMutedMedia MediaRecorder.ignoreMutedMedia = boolean

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ignoreMutedMedia

Property.

[Experimental]

The ignoreMutedMedia property of the `web.video.MediaRecorder`
indicates whether the MediaRecorder instance will record input,
the input MediaStreamTrack is muted.

`var boolean = MediaRecorder.ignoreMutedMedia
MediaRecorder.ignoreMutedMedia = boolean`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ignoreMutedMedia`
sourceraw docstring

is-type-supportedcljs

(is-type-supported this mime-type)

Method.

The MediaRecorder.isTypeSupported() static method returns a Boolean is true if the MIME type specified is one the user agent should able to successfully record.

var canRecord = MediaRecorder.isTypeSupported(mimeType)

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported

Method.

The MediaRecorder.isTypeSupported() static method returns a Boolean
is true if the MIME type specified is one the user agent should
able to successfully record.

`var canRecord = MediaRecorder.isTypeSupported(mimeType)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported`
sourceraw docstring

mime-typecljs

(mime-type this)

Property.

[Read Only]

The mimeType read-only property returns the MIME media type that specified when creating the web.video.MediaRecorder object, if none was specified, which was chosen by the browser.

var mimeType = mediaRecorder.mimeType

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType

Property.

[Read Only]

The mimeType read-only property returns the MIME media type that
specified when creating the `web.video.MediaRecorder` object,
if none was specified, which was chosen by the browser.

`var mimeType = mediaRecorder.mimeType`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType`
sourceraw docstring

ondataavailablecljs

(ondataavailable this)

Property.

The MediaRecorder.ondataavailable event handler (part of the Recording API) handles the dataavailable event, letting you run in response to web.files.Blob data being made available for

MediaRecorder.ondataavailable = function(event) { ... } MediaRecorder.addEventListener('dataavailable', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable

Property.

The MediaRecorder.ondataavailable event handler (part of the
Recording API) handles the dataavailable event, letting you run
in response to `web.files.Blob` data being made available for

`MediaRecorder.ondataavailable = function(event) { ... }
MediaRecorder.addEventListener('dataavailable', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable`
sourceraw docstring

onerrorcljs

(onerror this)

Property.

The web.video.MediaRecorder interface's onerror event handler called by the MediaStream Recording API when an error occurs. can provide an event handler to deal with errors that occur while or using a media recorder

MediaRecorder.onerror = errorHandlerFunction;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror

Property.

The `web.video.MediaRecorder` interface's onerror event handler
called by the MediaStream Recording API when an error occurs.
can provide an event handler to deal with errors that occur while
or using a media recorder

`MediaRecorder.onerror = errorHandlerFunction;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror`
sourceraw docstring

onpausecljs

(onpause this)

Property.

The MediaRecorder.onpause event handler (part of the MediaRecorder handles the pause event, allowing you to run code in response the media recording being paused.

MediaRecorder.onpause = function(event) { ... } MediaRecorder.addEventListener('pause', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onpause

Property.

The MediaRecorder.onpause event handler (part of the MediaRecorder
handles the pause event, allowing you to run code in response
the media recording being paused.

`MediaRecorder.onpause = function(event) { ... }
MediaRecorder.addEventListener('pause', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onpause`
sourceraw docstring

onresumecljs

(onresume this)

Property.

The MediaRecorder.onresume event handler (part of the MediaRecorder handles the resume event, allowing you to run code in response the media recording being resumed after pausing.

MediaRecorder.onresume = function(event) { ... } MediaRecorder.addEventListener('resume', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onresume

Property.

The MediaRecorder.onresume event handler (part of the MediaRecorder
handles the resume event, allowing you to run code in response
the media recording being resumed after pausing.

`MediaRecorder.onresume = function(event) { ... }
MediaRecorder.addEventListener('resume', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onresume`
sourceraw docstring

onstartcljs

(onstart this)

Property.

The MediaRecorder.onstartevent handler (part of the MediaRecorder handles the start event, allowing you to run code in response media recording being started by a MediaRecorder.

MediaRecorder.onstart = function(event) { ... } MediaRecorder.addEventListener('start', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart

Property.

The MediaRecorder.onstartevent handler (part of the MediaRecorder
handles the start event, allowing you to run code in response
media recording being started by a MediaRecorder.

`MediaRecorder.onstart = function(event) { ... }
MediaRecorder.addEventListener('start', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart`
sourceraw docstring

onstopcljs

(onstop this)

Property.

The MediaRecorder.onstop event handler (part of the MediaRecorder handles the stop event, allowing you to run code in response media recording via a MediaRecorder being stopped.

MediaRecorder.onstop = function(event) { ... } MediaRecorder.addEventListener('stop', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop

Property.

The MediaRecorder.onstop event handler (part of the MediaRecorder
handles the stop event, allowing you to run code in response
media recording via a MediaRecorder being stopped.

`MediaRecorder.onstop = function(event) { ... }
MediaRecorder.addEventListener('stop', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop`
sourceraw docstring

onwarningcljs

(onwarning this)

Property.

[Deprecated]

The MediaRecorder.onwarning event handler (part of the MediaRecorder handles the recordingwarning event, allowing you to run code response to non-fatal errors being thrown during media recording a MediaRecorder, which don't halt recording.

MediaRecorder.onwarning = function(event) { ... } MediaRecorder.addEventListener('warning', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning

Property.

[Deprecated]

The MediaRecorder.onwarning event handler (part of the MediaRecorder
handles the recordingwarning event, allowing you to run code
response to non-fatal errors being thrown during media recording
a MediaRecorder, which don't halt recording.

`MediaRecorder.onwarning = function(event) { ... }
MediaRecorder.addEventListener('warning', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning`
sourceraw docstring

pausecljs

(pause this)

Method.

The Media.pause() method (part of the MediaRecorder API) is used pause recording of media streams.

MediaRecorder.pause()

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/pause

Method.

The Media.pause() method (part of the MediaRecorder API) is used
pause recording of media streams.

`MediaRecorder.pause()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/pause`
sourceraw docstring

request-datacljs

(request-data this)

Method.

The MediaRecorder.requestData() method (part of the MediaRecorder is used to raise a dataavailable event containing a web.files.Blob of the captured media as it was when the method was called.

MediaRecorder.requestData()

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/requestData

Method.

The MediaRecorder.requestData() method (part of the MediaRecorder
is used to raise a `dataavailable` event containing a `web.files.Blob`
of the captured media as it was when the method was called.

`MediaRecorder.requestData()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/requestData`
sourceraw docstring

resumecljs

(resume this)

Method.

The MediaRecorder.resume() method (part of the MediaRecorder is used to resume media recording when it has been previously

MediaRecorder.resume()

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/resume

Method.

The MediaRecorder.resume() method (part of the MediaRecorder
is used to resume media recording when it has been previously

`MediaRecorder.resume()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/resume`
sourceraw docstring

set-ignore-muted-media!cljs

(set-ignore-muted-media! this val)

Property.

[Experimental]

The ignoreMutedMedia property of the web.video.MediaRecorder indicates whether the MediaRecorder instance will record input, the input MediaStreamTrack is muted.

var boolean = MediaRecorder.ignoreMutedMedia MediaRecorder.ignoreMutedMedia = boolean

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ignoreMutedMedia

Property.

[Experimental]

The ignoreMutedMedia property of the `web.video.MediaRecorder`
indicates whether the MediaRecorder instance will record input,
the input MediaStreamTrack is muted.

`var boolean = MediaRecorder.ignoreMutedMedia
MediaRecorder.ignoreMutedMedia = boolean`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ignoreMutedMedia`
sourceraw docstring

set-ondataavailable!cljs

(set-ondataavailable! this val)

Property.

The MediaRecorder.ondataavailable event handler (part of the Recording API) handles the dataavailable event, letting you run in response to web.files.Blob data being made available for

MediaRecorder.ondataavailable = function(event) { ... } MediaRecorder.addEventListener('dataavailable', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable

Property.

The MediaRecorder.ondataavailable event handler (part of the
Recording API) handles the dataavailable event, letting you run
in response to `web.files.Blob` data being made available for

`MediaRecorder.ondataavailable = function(event) { ... }
MediaRecorder.addEventListener('dataavailable', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable`
sourceraw docstring

set-onerror!cljs

(set-onerror! this val)

Property.

The web.video.MediaRecorder interface's onerror event handler called by the MediaStream Recording API when an error occurs. can provide an event handler to deal with errors that occur while or using a media recorder

MediaRecorder.onerror = errorHandlerFunction;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror

Property.

The `web.video.MediaRecorder` interface's onerror event handler
called by the MediaStream Recording API when an error occurs.
can provide an event handler to deal with errors that occur while
or using a media recorder

`MediaRecorder.onerror = errorHandlerFunction;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror`
sourceraw docstring

set-onpause!cljs

(set-onpause! this val)

Property.

The MediaRecorder.onpause event handler (part of the MediaRecorder handles the pause event, allowing you to run code in response the media recording being paused.

MediaRecorder.onpause = function(event) { ... } MediaRecorder.addEventListener('pause', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onpause

Property.

The MediaRecorder.onpause event handler (part of the MediaRecorder
handles the pause event, allowing you to run code in response
the media recording being paused.

`MediaRecorder.onpause = function(event) { ... }
MediaRecorder.addEventListener('pause', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onpause`
sourceraw docstring

set-onresume!cljs

(set-onresume! this val)

Property.

The MediaRecorder.onresume event handler (part of the MediaRecorder handles the resume event, allowing you to run code in response the media recording being resumed after pausing.

MediaRecorder.onresume = function(event) { ... } MediaRecorder.addEventListener('resume', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onresume

Property.

The MediaRecorder.onresume event handler (part of the MediaRecorder
handles the resume event, allowing you to run code in response
the media recording being resumed after pausing.

`MediaRecorder.onresume = function(event) { ... }
MediaRecorder.addEventListener('resume', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onresume`
sourceraw docstring

set-onstart!cljs

(set-onstart! this val)

Property.

The MediaRecorder.onstartevent handler (part of the MediaRecorder handles the start event, allowing you to run code in response media recording being started by a MediaRecorder.

MediaRecorder.onstart = function(event) { ... } MediaRecorder.addEventListener('start', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart

Property.

The MediaRecorder.onstartevent handler (part of the MediaRecorder
handles the start event, allowing you to run code in response
media recording being started by a MediaRecorder.

`MediaRecorder.onstart = function(event) { ... }
MediaRecorder.addEventListener('start', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart`
sourceraw docstring

set-onstop!cljs

(set-onstop! this val)

Property.

The MediaRecorder.onstop event handler (part of the MediaRecorder handles the stop event, allowing you to run code in response media recording via a MediaRecorder being stopped.

MediaRecorder.onstop = function(event) { ... } MediaRecorder.addEventListener('stop', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop

Property.

The MediaRecorder.onstop event handler (part of the MediaRecorder
handles the stop event, allowing you to run code in response
media recording via a MediaRecorder being stopped.

`MediaRecorder.onstop = function(event) { ... }
MediaRecorder.addEventListener('stop', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop`
sourceraw docstring

set-onwarning!cljs

(set-onwarning! this val)

Property.

[Deprecated]

The MediaRecorder.onwarning event handler (part of the MediaRecorder handles the recordingwarning event, allowing you to run code response to non-fatal errors being thrown during media recording a MediaRecorder, which don't halt recording.

MediaRecorder.onwarning = function(event) { ... } MediaRecorder.addEventListener('warning', function(event) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning

Property.

[Deprecated]

The MediaRecorder.onwarning event handler (part of the MediaRecorder
handles the recordingwarning event, allowing you to run code
response to non-fatal errors being thrown during media recording
a MediaRecorder, which don't halt recording.

`MediaRecorder.onwarning = function(event) { ... }
MediaRecorder.addEventListener('warning', function(event) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning`
sourceraw docstring

startcljs

(start this timeslice)

Method.

The web.video.MediaRecorder method start(), which is part of MediaStream Recording API, begins recording media into one or web.files.Blob objects.

MediaRecorder.start(timeslice)

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start

Method.

The `web.video.MediaRecorder` method start(), which is part of
MediaStream Recording API, begins recording media into one or
`web.files.Blob` objects.

`MediaRecorder.start(timeslice)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start`
sourceraw docstring

statecljs

(state this)

Property.

[Read Only]

The MediaRecorder.state read-only property returns the current of the current MediaRecorder object.

var state = MediaRecorder.state

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/state

Property.

[Read Only]

The MediaRecorder.state read-only property returns the current
of the current MediaRecorder object.

`var state = MediaRecorder.state`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/state`
sourceraw docstring

stopcljs

(stop this)

Method.

The MediaRecorder.stop() method (part of the MediaRecorder API) used to stop media capture.

MediaRecorder.stop()

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stop

Method.

The MediaRecorder.stop() method (part of the MediaRecorder API)
used to stop media capture.

`MediaRecorder.stop()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stop`
sourceraw docstring

streamcljs

(stream this)

Property.

[Read Only]

The MediaRecorder.stream read-only property returns the stream was passed into the MediaRecorder() constructor when the MediaRecorder created.

var stream = MediaRecorder.stream

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stream

Property.

[Read Only]

The MediaRecorder.stream read-only property returns the stream
was passed into the MediaRecorder() constructor when the MediaRecorder
created.

`var stream = MediaRecorder.stream`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stream`
sourceraw docstring

video-bits-per-secondcljs

(video-bits-per-second this)

Property.

[Read Only] [Experimental]

The videoBitsPerSecond read-only property of the web.video.MediaRecorder returns the video encoding bit rate in use.

var videoBitsPerSecond = MediaRecorder.videoBitsPerSecond

See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/videoBitsPerSecond

Property.

[Read Only]
[Experimental]

The videoBitsPerSecond read-only property of the `web.video.MediaRecorder`
returns the video encoding bit rate in use.

`var videoBitsPerSecond = MediaRecorder.videoBitsPerSecond`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/videoBitsPerSecond`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close