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.
(audio-bits-per-second this)
Property.
The audioBitsPerSecond read-only property of the media.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. The audioBitsPerSecond read-only property of the `media.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`
Constructor.
The MediaRecorder() constructor creates a new media.MediaRecorder
object that will record a specified media.MediaStream
.
stream
The media.MediaStream
that will be recorded. This source media can come from a stream created using web.navigator.mediaDevices.getUserMedia()
or from an web.<audio>
, web.<video>
or web.<canvas>
element.
options Optional
A dictionary object that can contain the following properties:
mimeType: The MIME type you want to use as the recording container for the new MediaRecorder. This field may simply specify the container format (allowing the browser to choose its preferred codecs) or may include the codec and/or profile options to use. Applications can check in advance if this mimeType is supported by the user agent by calling media.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 `media.MediaRecorder` object that will record a specified `media.MediaStream`. stream The `media.MediaStream` that will be recorded. This source media can come from a stream created using `web.navigator.mediaDevices.getUserMedia()` or from an `web.<audio>`, `web.<video>` or `web.<canvas>` element. options Optional A dictionary object that can contain the following properties: mimeType: The MIME type you want to use as the recording container for the new MediaRecorder. This field may simply specify the container format (allowing the browser to choose its preferred codecs) or may include the codec and/or profile options to use. Applications can check in advance if this mimeType is supported by the user agent by calling `media.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`
(ignore-muted-media this)
Property.
The ignoreMutedMedia property of the media.MediaRecorder
interface
whether the MediaRecorder instance will record input, when the
MediaStreamTrack is muted.
var boolean = MediaRecorder.ignoreMutedMedia MediaRecorder.ignoreMutedMedia = boolean
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ignoreMutedMedia
Property. The ignoreMutedMedia property of the `media.MediaRecorder` interface whether the MediaRecorder instance will record input, when the MediaStreamTrack is muted. `var boolean = MediaRecorder.ignoreMutedMedia MediaRecorder.ignoreMutedMedia = boolean` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ignoreMutedMedia`
(is-type-supported this mime-type)
Method.
The MediaRecorder.isTypeSupported() method returns a Boolean is true if the MIME type specified is one the user agent can
var canRecord = MediaRecorder.isTypeSupported(mimeType)
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported
Method. The MediaRecorder.isTypeSupported() method returns a Boolean is true if the MIME type specified is one the user agent can `var canRecord = MediaRecorder.isTypeSupported(mimeType)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported`
(mime-type this)
Property.
The MediaRecorder.mimeType read-only property returns the MIME that is being used as the recording container when it was created. is the file format of the file that would result from writing of the recorded data to disk. Keep in mind, of course, that the format and the codecs associated with the individual tracks are things entirely; writing tracks that work just fine in a WebM into an MP4 wrapper may not result in a file that plays everywhere want it to.
var mimeType = MediaRecorder.mimeType
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType
Property. The MediaRecorder.mimeType read-only property returns the MIME that is being used as the recording container when it was created. is the file format of the file that would result from writing of the recorded data to disk. Keep in mind, of course, that the format and the codecs associated with the individual tracks are things entirely; writing tracks that work just fine in a WebM into an MP4 wrapper may not result in a file that plays everywhere want it to. `var mimeType = MediaRecorder.mimeType` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType`
(ondataavailable this)
Property.
The MediaRecorder.ondataavailable event handler (part of the
Recording API) handles the dataavailable event, letting you run
in response to web.Blob
data being made available for use.
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.Blob` data being made available for use. `MediaRecorder.ondataavailable = function(event) { ... } MediaRecorder.addEventListener('dataavailable', function(event) { ... })` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable`
(onerror this)
Property.
The media.MediaRecorder
interface's onerror event handler is
by the MediaStream Recording API when an error occurs. You can
an event handler to deal with errors that occur while creating
using a media recorder
MediaRecorder.onerror = errorHandlerFunction;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror
Property. The `media.MediaRecorder` interface's onerror event handler is by the MediaStream Recording API when an error occurs. You can an event handler to deal with errors that occur while creating using a media recorder `MediaRecorder.onerror = errorHandlerFunction;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror`
(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`
(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`
(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`
(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`
(onwarning this)
Property.
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. 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`
(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`
(request-data this)
Method.
The MediaRecorder.requestData() method (part of the MediaRecorder
is used to raise a web.dataavailable
event containing a web.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 `web.dataavailable` event containing a `web.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`
(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`
(set-audio-bits-per-second! this val)
Property.
The audioBitsPerSecond read-only property of the media.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. The audioBitsPerSecond read-only property of the `media.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`
(set-ignore-muted-media! this val)
Property.
The ignoreMutedMedia property of the media.MediaRecorder
interface
whether the MediaRecorder instance will record input, when the
MediaStreamTrack is muted.
var boolean = MediaRecorder.ignoreMutedMedia MediaRecorder.ignoreMutedMedia = boolean
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ignoreMutedMedia
Property. The ignoreMutedMedia property of the `media.MediaRecorder` interface whether the MediaRecorder instance will record input, when the MediaStreamTrack is muted. `var boolean = MediaRecorder.ignoreMutedMedia MediaRecorder.ignoreMutedMedia = boolean` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ignoreMutedMedia`
(set-mime-type! this val)
Property.
The MediaRecorder.mimeType read-only property returns the MIME that is being used as the recording container when it was created. is the file format of the file that would result from writing of the recorded data to disk. Keep in mind, of course, that the format and the codecs associated with the individual tracks are things entirely; writing tracks that work just fine in a WebM into an MP4 wrapper may not result in a file that plays everywhere want it to.
var mimeType = MediaRecorder.mimeType
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType
Property. The MediaRecorder.mimeType read-only property returns the MIME that is being used as the recording container when it was created. is the file format of the file that would result from writing of the recorded data to disk. Keep in mind, of course, that the format and the codecs associated with the individual tracks are things entirely; writing tracks that work just fine in a WebM into an MP4 wrapper may not result in a file that plays everywhere want it to. `var mimeType = MediaRecorder.mimeType` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType`
(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.Blob
data being made available for use.
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.Blob` data being made available for use. `MediaRecorder.ondataavailable = function(event) { ... } MediaRecorder.addEventListener('dataavailable', function(event) { ... })` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable`
(set-onerror! this val)
Property.
The media.MediaRecorder
interface's onerror event handler is
by the MediaStream Recording API when an error occurs. You can
an event handler to deal with errors that occur while creating
using a media recorder
MediaRecorder.onerror = errorHandlerFunction;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror
Property. The `media.MediaRecorder` interface's onerror event handler is by the MediaStream Recording API when an error occurs. You can an event handler to deal with errors that occur while creating using a media recorder `MediaRecorder.onerror = errorHandlerFunction;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror`
(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`
(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`
(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`
(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`
(set-onwarning! this val)
Property.
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. 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`
(set-state! this val)
Property.
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. 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`
(set-stream! this val)
Property.
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. 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`
(set-video-bits-per-second! this val)
Property.
The videoBitsPerSecond read-only property of the media.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. The videoBitsPerSecond read-only property of the `media.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`
(start this timeslice)
Method.
The media.MediaRecorder
method start(), which is part of the
Recording API, begins recording media into one or more web.Blob
MediaRecorder.start(timeslice)
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start
Method. The `media.MediaRecorder` method start(), which is part of the Recording API, begins recording media into one or more `web.Blob` `MediaRecorder.start(timeslice)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start`
(state this)
Property.
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. 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`
(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`
(stream this)
Property.
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. 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`
(video-bits-per-second this)
Property.
The videoBitsPerSecond read-only property of the media.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. The videoBitsPerSecond read-only property of the `media.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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close