Liking cljdoc? Tell your friends :D

html.HTMLMediaElement

The HTMLMediaElement interface adds to html.HTMLElement the and methods needed to support basic media-related capabilities are common to audio and video.

The HTMLMediaElement interface adds to `html.HTMLElement` the
and methods needed to support basic media-related capabilities
are common to audio and video.
raw docstring

audio-trackscljs

(audio-tracks this)

Property.

The read-only audioTracks property on html.HTMLMediaElement returns an audio.AudioTrackList object listing all of the audio.AudioTrack representing the media element's audio tracks.

var audioTracks = mediaElement.audioTracks;

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

Property.

The read-only audioTracks property on `html.HTMLMediaElement`
returns an `audio.AudioTrackList` object listing all of the `audio.AudioTrack`
representing the media element's audio tracks.

`var audioTracks = mediaElement.audioTracks;`

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

autoplaycljs

(autoplay this)

Property.

The HTMLMediaElement.autoplay property reflects the autoplay attribute, indicating whether playback should automatically begin soon as enough media is available to do so without interruption.

`HTMLMediaElement.autoplay = true | false;

var autoplay = HTMLMediaElement.autoplay;`

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

Property.

The HTMLMediaElement.autoplay property reflects the autoplay
attribute, indicating whether playback should automatically begin
soon as enough media is available to do so without interruption.

`HTMLMediaElement.autoplay = true | false;

var autoplay = HTMLMediaElement.autoplay;`

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

bufferedcljs

(buffered this)

Property.

The HTMLMediaElement.buffered read-only property returns a new object that indicates the ranges of the media source that the has buffered (if any) at the moment the buffered property is

var timeRange = audioObject.buffered

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

Property.

The HTMLMediaElement.buffered read-only property returns a new
object that indicates the ranges of the media source that the
has buffered (if any) at the moment the buffered property is

`var timeRange = audioObject.buffered`

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

can-play-typecljs

(can-play-type this media-type)

Method.

The html.HTMLMediaElement method canPlayType() reports how it is that the current browser will be able to play media of given MIME type.

canPlayResponse = audioOrVideo.canPlayType(mediaType);

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

Method.

The `html.HTMLMediaElement` method canPlayType() reports how
it is that the current browser will be able to play media of
given MIME type.

`canPlayResponse = audioOrVideo.canPlayType(mediaType);`

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

capture-streamcljs

(capture-stream this)

Method.

The captureStream() property of the html.HTMLMediaElement interface a media.MediaStream object which is streaming a real-time capture the content being rendered in the media element.

var mediaStream = mediaElement.captureStream()

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

Method.

The captureStream() property of the `html.HTMLMediaElement` interface
a `media.MediaStream` object which is streaming a real-time capture
the content being rendered in the media element.

`var mediaStream = mediaElement.captureStream()`

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

controllercljs

(controller this)

Property.

The HTMLMediaElement.controller property represents the media assigned to the element.

...

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

Property.

The HTMLMediaElement.controller property represents the media
assigned to the element.

`...`

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

controlscljs

(controls this)

Property.

The HTMLMediaElement.controls property reflects the controls attribute, which controls whether user interface controls for the media item will be displayed.

var ctrls = video.controls; audio.controls = true;

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

Property.

The HTMLMediaElement.controls property reflects the controls
attribute, which controls whether user interface controls for
the media item will be displayed.

`var ctrls = video.controls;
audio.controls = true;`

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

controls-listcljs

(controls-list this)

Property.

The controlsList property of the html.HTMLMediaElement interface a DOMTokenList that helps the user agent select what controls show on the media element whenever the user agent shows its own of controls. The DOMTokenList takes one or more of three possible nodownload, nofullscreen, and noremoteplayback.

var domTokenList = HTMLMediaElement.controlsList;

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

Property.

The controlsList property of the `html.HTMLMediaElement` interface
a DOMTokenList that helps the user agent select what controls
show on the media element whenever the user agent shows its own
of controls. The DOMTokenList takes one or more of three possible
nodownload, nofullscreen, and noremoteplayback.

`var domTokenList = HTMLMediaElement.controlsList;`

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

cross-origincljs

(cross-origin this)

Property.

The HTMLMediaElement.crossOrigin property is the CORS setting this image element. See CORS settings attributes for details.

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

Property.

The HTMLMediaElement.crossOrigin property is the CORS setting
this image element. See CORS settings attributes for details.

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

current-srccljs

(current-src this)

Property.

The HTMLMediaElement.currentSrc property contains the absolute of the chosen media resource. This could happen, for example, the web server selects a media file based on the resolution of user's display. The value is an empty string if the networkState is EMPTY.

var mediaUrl = audioObject.currentSrc;

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

Property.

The HTMLMediaElement.currentSrc property contains the absolute
of the chosen media resource. This could happen, for example,
the web server selects a media file based on the resolution of
user's display. The value is an empty string if the networkState
is EMPTY.

`var mediaUrl = audioObject.currentSrc;`

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

current-timecljs

(current-time this)

Property.

The html.HTMLMediaElement interface's currentTime property the current playback time in seconds.

var currentTime = htmlMediaElement.currentTime; htmlMediaElement.currentTime = 35;

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

Property.

The `html.HTMLMediaElement` interface's currentTime property
the current playback time in seconds.

`var currentTime = htmlMediaElement.currentTime;
htmlMediaElement.currentTime = 35;`

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

default-mutedcljs

(default-muted this)

Property.

The HTMLMediaElement.defaultMuted property reflects the muted attribute, which indicates whether the media element's audio should be muted by default. This property has no dynamic effect. mute and unmute the audio output, use the web.muted property.

var dMuted = video.defaultMuted; audio.defaultMuted = true;

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

Property.

The HTMLMediaElement.defaultMuted property reflects the muted
attribute, which indicates whether the media element's audio
should be muted by default. This property has no dynamic effect.
mute and unmute the audio output, use the `web.muted` property.

`var dMuted = video.defaultMuted;
audio.defaultMuted = true;`

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

default-playback-ratecljs

(default-playback-rate this)

Property.

The HTMLMediaElement.defaultPlaybackRate property indicates the playback rate for the media.

var dSpeed = video.defaultPlaybackRate; audio.defaultPlaybackRate = 1.0;

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

Property.

The HTMLMediaElement.defaultPlaybackRate property indicates the
playback rate for the media.

`var dSpeed = video.defaultPlaybackRate;
audio.defaultPlaybackRate = 1.0;`

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

disable-remote-playbackcljs

(disable-remote-playback this)

Property.

The HTMLMediaElement.disableRemotePlayback property determines the media element is allowed to have a remote playback UI.

var remotePlaybackState ​= element.disableRemotePlayback();

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

Property.

The HTMLMediaElement.disableRemotePlayback property determines
the media element is allowed to have a remote playback UI.

`var remotePlaybackState ​= element.disableRemotePlayback();`

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

durationcljs

(duration this)

Property.

The read-only html.HTMLMediaElement property duration indicates length of the element's media in seconds.

myDuration = htmlMediaElement.duration

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

Property.

The read-only `html.HTMLMediaElement` property duration indicates
length of the element's media in seconds.

`myDuration = htmlMediaElement.duration`

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

endedcljs

(ended this)

Property.

The HTMLMediaElement.ended indicates whether the media element ended playback.

var isEnded = HTMLMediaElement.ended

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

Property.

The HTMLMediaElement.ended indicates whether the media element
ended playback.

`var isEnded = HTMLMediaElement.ended`

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

errorcljs

(error this)

Property.

The HTMLMediaElement.error is the media.MediaError object for most recent error, or null if there has not been an error. When error event is received by the element, you can determine details what happened by examining this object.

var myError = HTMLMediaElement.error;

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

Property.

The HTMLMediaElement.error is the `media.MediaError` object for
most recent error, or null if there has not been an error. When
error event is received by the element, you can determine details
what happened by examining this object.

`var myError = HTMLMediaElement.error;`

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

fast-seekcljs

(fast-seek this time)

Method.

The HTMLMediaElement.fastSeek() method quickly seeks the media the new time with precision tradeoff.

HTMLMediaElement.fastSeek(time);

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

Method.

The HTMLMediaElement.fastSeek() method quickly seeks the media
the new time with precision tradeoff.

`HTMLMediaElement.fastSeek(time);`

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

initial-timecljs

(initial-time this)

Property.

The HTMLMediaElement.initialTime is the initial playback position seconds. This property is obsolete, you can use a Media Fragments in the html.HTMLMediaElement.src attribute instead.

...

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

Property.

The HTMLMediaElement.initialTime is the initial playback position
seconds. This property is obsolete, you can use a Media Fragments
in the `html.HTMLMediaElement.src` attribute instead.

`...`

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

loadcljs

(load this)

Method.

The html.HTMLMediaElement method load() resets the media element its initial state and begins the process of selecting a media and loading the media in preparation for playback to begin at beginning.

mediaElement.load();

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

Method.

The `html.HTMLMediaElement` method load() resets the media element
its initial state and begins the process of selecting a media
and loading the media in preparation for playback to begin at
beginning.

`mediaElement.load();`

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

loopcljs

(loop this)

Property.

The HTMLMediaElement.loop property reflects the loop HTML attribute, controls whether the media element should start over when it the end.

var loop = video.loop; audio.loop = true;

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

Property.

The HTMLMediaElement.loop property reflects the loop HTML attribute,
controls whether the media element should start over when it
the end.

`var loop = video.loop;
audio.loop = true;`

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

media-groupcljs

(media-group this)

Property.

The HTMLMediaElement.mediaGroup property reflects the mediagroup attribute, which indicates the name of the group of elements belongs to. A group of media elements shares a common controller.

...

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

Property.

The HTMLMediaElement.mediaGroup property reflects the mediagroup
attribute, which indicates the name of the group of elements
belongs to. A group of media elements shares a common controller.

`...`

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

ms-insert-audio-effectcljs

(ms-insert-audio-effect this & args)

Method.

The HTMLMediaElement.msInsertAudioEffect() method inserts the audio effect into the media pipeline.

HTMLMediaElement.msInsertAudioEffect(activatableClassId: DOMString, effectRequired: boolean, config);

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

Method.

The HTMLMediaElement.msInsertAudioEffect() method inserts the
audio effect into the media pipeline.

`HTMLMediaElement.msInsertAudioEffect(activatableClassId: DOMString, effectRequired: boolean, config);`

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

mutedcljs

(muted this)

Property.

The HTMLMediaElement.muted indicates whether the media element

var isMuted = audioOrVideo.muted audio.muted = true;

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

Property.

The HTMLMediaElement.muted indicates whether the media element

`var isMuted = audioOrVideo.muted
audio.muted = true;`

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

network-statecljs

(network-state this)

Property.

The HTMLMediaElement.networkState property indicates the current of the fetching of media over the network.

var networkState = audioOrVideo.networkState;

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

Property.

The HTMLMediaElement.networkState property indicates the current
of the fetching of media over the network.

`var networkState = audioOrVideo.networkState;`

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

onencryptedcljs

(onencrypted this)

Property.

The onencrypted property of the html.HTMLMediaElement is an handler, fired whenever an encrypted event occurs, denoting the is encrypted.

HTMLMediaElement.onencrypted = function(encrypted) { ... }

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

Property.

The onencrypted property of the `html.HTMLMediaElement` is an
handler, fired whenever an encrypted event occurs, denoting the
is encrypted.

`HTMLMediaElement.onencrypted = function(encrypted) { ... }`

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

onerrorcljs

(onerror this)

Property.

The onerror property of the html.HTMLMediaElement interface the web.EventHandler for processing error events.

HTMLMediaElement.onerror = EventListener;

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

Property.

The onerror property of the `html.HTMLMediaElement` interface
the `web.EventHandler` for processing error events.

`HTMLMediaElement.onerror = EventListener;`

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

onwaitingforkeycljs

(onwaitingforkey this)

Property.

The onwaitingforkey property of the html.HTMLMediaElement is event handler, fired when a waitingforkey event occurs, when is blocked while waiting for an encryption key.

HTMLMediaElement.onwaitingforkey = function(waitingforkey) { ... }

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

Property.

The onwaitingforkey property of the `html.HTMLMediaElement` is
event handler, fired when a waitingforkey event occurs, when
is blocked while waiting for an encryption key.

`HTMLMediaElement.onwaitingforkey = function(waitingforkey) { ... }`

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

pausecljs

(pause this)

Method.

The HTMLMediaElement.pause() method will pause playback of the if the media is already in a paused state this method will have effect.

HTMLMediaElement.pause()

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

Method.

The HTMLMediaElement.pause() method will pause playback of the
if the media is already in a paused state this method will have
effect.

`HTMLMediaElement.pause()`

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

pausedcljs

(paused this)

Property.

The read-only HTMLMediaElement.paused property tells whether media element is paused.

var isPaused = audioOrVideo.paused

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

Property.

The read-only HTMLMediaElement.paused property tells whether
media element is paused.

`var isPaused = audioOrVideo.paused`

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

playcljs

(play this)

Method.

The html.HTMLMediaElement method play() attempts to begin playback the media. It returns a web.Promise which is resolved when has been successfully started.

var promise = HTMLMediaElement.play();

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

Method.

The `html.HTMLMediaElement` method play() attempts to begin playback
the media. It returns a `web.Promise` which is resolved when
has been successfully started.

`var promise = HTMLMediaElement.play();`

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

playback-ratecljs

(playback-rate this)

Property.

The HTMLMediaElement.playbackRate property sets the rate at which media is being played back. This is used to implement user controls fast forward, slow motion, and so forth. The normal playback is multiplied by this value to obtain the current rate, so a of 1.0 indicates normal speed.

// video video.playbackRate = 1.5; // audio audio.playbackRate = 1.0;

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

Property.

The HTMLMediaElement.playbackRate property sets the rate at which
media is being played back. This is used to implement user controls
fast forward, slow motion, and so forth. The normal playback
is multiplied by this value to obtain the current rate, so a
of 1.0 indicates normal speed.

`// video
video.playbackRate = 1.5;
// audio
audio.playbackRate = 1.0;`

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

ready-statecljs

(ready-state this)

Property.

The HTMLMediaElement.readyState property indicates the readiness of the media.

var readyState = audioOrVideo.readyState;

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

Property.

The HTMLMediaElement.readyState property indicates the readiness
of the media.

`var readyState = audioOrVideo.readyState;`

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

seek-to-next-framecljs

(seek-to-next-frame this & args)

Method.

The HTMLMediaElement.seekToNextFrame() method asynchronously the the current play position to the next frame in the media.

`var seekCompletePromise = HTMLMediaElement.seekToNextFrame();

HTMLMediaElement.seekToNextFrame();`

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

Method.

The HTMLMediaElement.seekToNextFrame() method asynchronously
the the current play position to the next frame in the media.

`var seekCompletePromise = HTMLMediaElement.seekToNextFrame();

HTMLMediaElement.seekToNextFrame();`

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

seekablecljs

(seekable this)

Property.

The seekable read-only property of the html.HTMLMediaElement a web.TimeRanges object that contains the time ranges that user is able to seek to, if any.

var seekable = audioOrVideo.seekable;

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

Property.

The seekable read-only property of the `html.HTMLMediaElement`
a `web.TimeRanges` object that contains the time ranges that
user is able to seek to, if any.

`var seekable = audioOrVideo.seekable;`

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

set-audio-tracks!cljs

(set-audio-tracks! this val)

Property.

The read-only audioTracks property on html.HTMLMediaElement returns an audio.AudioTrackList object listing all of the audio.AudioTrack representing the media element's audio tracks.

var audioTracks = mediaElement.audioTracks;

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

Property.

The read-only audioTracks property on `html.HTMLMediaElement`
returns an `audio.AudioTrackList` object listing all of the `audio.AudioTrack`
representing the media element's audio tracks.

`var audioTracks = mediaElement.audioTracks;`

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

set-autoplay!cljs

(set-autoplay! this val)

Property.

The HTMLMediaElement.autoplay property reflects the autoplay attribute, indicating whether playback should automatically begin soon as enough media is available to do so without interruption.

`HTMLMediaElement.autoplay = true | false;

var autoplay = HTMLMediaElement.autoplay;`

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

Property.

The HTMLMediaElement.autoplay property reflects the autoplay
attribute, indicating whether playback should automatically begin
soon as enough media is available to do so without interruption.

`HTMLMediaElement.autoplay = true | false;

var autoplay = HTMLMediaElement.autoplay;`

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

set-controller!cljs

(set-controller! this val)

Property.

The HTMLMediaElement.controller property represents the media assigned to the element.

...

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

Property.

The HTMLMediaElement.controller property represents the media
assigned to the element.

`...`

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

set-controls!cljs

(set-controls! this val)

Property.

The HTMLMediaElement.controls property reflects the controls attribute, which controls whether user interface controls for the media item will be displayed.

var ctrls = video.controls; audio.controls = true;

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

Property.

The HTMLMediaElement.controls property reflects the controls
attribute, which controls whether user interface controls for
the media item will be displayed.

`var ctrls = video.controls;
audio.controls = true;`

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

set-controls-list!cljs

(set-controls-list! this val)

Property.

The controlsList property of the html.HTMLMediaElement interface a DOMTokenList that helps the user agent select what controls show on the media element whenever the user agent shows its own of controls. The DOMTokenList takes one or more of three possible nodownload, nofullscreen, and noremoteplayback.

var domTokenList = HTMLMediaElement.controlsList;

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

Property.

The controlsList property of the `html.HTMLMediaElement` interface
a DOMTokenList that helps the user agent select what controls
show on the media element whenever the user agent shows its own
of controls. The DOMTokenList takes one or more of three possible
nodownload, nofullscreen, and noremoteplayback.

`var domTokenList = HTMLMediaElement.controlsList;`

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

set-cross-origin!cljs

(set-cross-origin! this val)

Property.

The HTMLMediaElement.crossOrigin property is the CORS setting this image element. See CORS settings attributes for details.

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

Property.

The HTMLMediaElement.crossOrigin property is the CORS setting
this image element. See CORS settings attributes for details.

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

set-current-time!cljs

(set-current-time! this val)

Property.

The html.HTMLMediaElement interface's currentTime property the current playback time in seconds.

var currentTime = htmlMediaElement.currentTime; htmlMediaElement.currentTime = 35;

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

Property.

The `html.HTMLMediaElement` interface's currentTime property
the current playback time in seconds.

`var currentTime = htmlMediaElement.currentTime;
htmlMediaElement.currentTime = 35;`

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

set-default-muted!cljs

(set-default-muted! this val)

Property.

The HTMLMediaElement.defaultMuted property reflects the muted attribute, which indicates whether the media element's audio should be muted by default. This property has no dynamic effect. mute and unmute the audio output, use the web.muted property.

var dMuted = video.defaultMuted; audio.defaultMuted = true;

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

Property.

The HTMLMediaElement.defaultMuted property reflects the muted
attribute, which indicates whether the media element's audio
should be muted by default. This property has no dynamic effect.
mute and unmute the audio output, use the `web.muted` property.

`var dMuted = video.defaultMuted;
audio.defaultMuted = true;`

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

set-default-playback-rate!cljs

(set-default-playback-rate! this val)

Property.

The HTMLMediaElement.defaultPlaybackRate property indicates the playback rate for the media.

var dSpeed = video.defaultPlaybackRate; audio.defaultPlaybackRate = 1.0;

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

Property.

The HTMLMediaElement.defaultPlaybackRate property indicates the
playback rate for the media.

`var dSpeed = video.defaultPlaybackRate;
audio.defaultPlaybackRate = 1.0;`

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

set-disable-remote-playback!cljs

(set-disable-remote-playback! this val)

Property.

The HTMLMediaElement.disableRemotePlayback property determines the media element is allowed to have a remote playback UI.

var remotePlaybackState ​= element.disableRemotePlayback();

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

Property.

The HTMLMediaElement.disableRemotePlayback property determines
the media element is allowed to have a remote playback UI.

`var remotePlaybackState ​= element.disableRemotePlayback();`

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

set-loop!cljs

(set-loop! this val)

Property.

The HTMLMediaElement.loop property reflects the loop HTML attribute, controls whether the media element should start over when it the end.

var loop = video.loop; audio.loop = true;

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

Property.

The HTMLMediaElement.loop property reflects the loop HTML attribute,
controls whether the media element should start over when it
the end.

`var loop = video.loop;
audio.loop = true;`

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

set-media-group!cljs

(set-media-group! this val)

Property.

The HTMLMediaElement.mediaGroup property reflects the mediagroup attribute, which indicates the name of the group of elements belongs to. A group of media elements shares a common controller.

...

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

Property.

The HTMLMediaElement.mediaGroup property reflects the mediagroup
attribute, which indicates the name of the group of elements
belongs to. A group of media elements shares a common controller.

`...`

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

set-media-keyscljs

(set-media-keys this media-keys)

Method.

The setMediaKeys() property of the html.HTMLMediaElement interface a web.Promise that resolves to the passed media.MediaKeys, are those used to decrypt media during playback.

var Promise = HTMLMediaElement.setMediaKeys(mediaKeys);

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

Method.

The setMediaKeys() property of the `html.HTMLMediaElement` interface
a `web.Promise` that resolves to the passed `media.MediaKeys`,
are those used to decrypt media during playback.

`var Promise = HTMLMediaElement.setMediaKeys(mediaKeys);`

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

set-muted!cljs

(set-muted! this val)

Property.

The HTMLMediaElement.muted indicates whether the media element

var isMuted = audioOrVideo.muted audio.muted = true;

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

Property.

The HTMLMediaElement.muted indicates whether the media element

`var isMuted = audioOrVideo.muted
audio.muted = true;`

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

set-onencrypted!cljs

(set-onencrypted! this val)

Property.

The onencrypted property of the html.HTMLMediaElement is an handler, fired whenever an encrypted event occurs, denoting the is encrypted.

HTMLMediaElement.onencrypted = function(encrypted) { ... }

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

Property.

The onencrypted property of the `html.HTMLMediaElement` is an
handler, fired whenever an encrypted event occurs, denoting the
is encrypted.

`HTMLMediaElement.onencrypted = function(encrypted) { ... }`

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

set-onerror!cljs

(set-onerror! this val)

Property.

The onerror property of the html.HTMLMediaElement interface the web.EventHandler for processing error events.

HTMLMediaElement.onerror = EventListener;

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

Property.

The onerror property of the `html.HTMLMediaElement` interface
the `web.EventHandler` for processing error events.

`HTMLMediaElement.onerror = EventListener;`

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

set-onwaitingforkey!cljs

(set-onwaitingforkey! this val)

Property.

The onwaitingforkey property of the html.HTMLMediaElement is event handler, fired when a waitingforkey event occurs, when is blocked while waiting for an encryption key.

HTMLMediaElement.onwaitingforkey = function(waitingforkey) { ... }

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

Property.

The onwaitingforkey property of the `html.HTMLMediaElement` is
event handler, fired when a waitingforkey event occurs, when
is blocked while waiting for an encryption key.

`HTMLMediaElement.onwaitingforkey = function(waitingforkey) { ... }`

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

set-playback-rate!cljs

(set-playback-rate! this val)

Property.

The HTMLMediaElement.playbackRate property sets the rate at which media is being played back. This is used to implement user controls fast forward, slow motion, and so forth. The normal playback is multiplied by this value to obtain the current rate, so a of 1.0 indicates normal speed.

// video video.playbackRate = 1.5; // audio audio.playbackRate = 1.0;

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

Property.

The HTMLMediaElement.playbackRate property sets the rate at which
media is being played back. This is used to implement user controls
fast forward, slow motion, and so forth. The normal playback
is multiplied by this value to obtain the current rate, so a
of 1.0 indicates normal speed.

`// video
video.playbackRate = 1.5;
// audio
audio.playbackRate = 1.0;`

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

set-seekable!cljs

(set-seekable! this val)

Property.

The seekable read-only property of the html.HTMLMediaElement a web.TimeRanges object that contains the time ranges that user is able to seek to, if any.

var seekable = audioOrVideo.seekable;

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

Property.

The seekable read-only property of the `html.HTMLMediaElement`
a `web.TimeRanges` object that contains the time ranges that
user is able to seek to, if any.

`var seekable = audioOrVideo.seekable;`

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

set-sink-idcljs

(set-sink-id this sink-id)

Method.

The HTMLMediaElement.setSinkId() method sets the ID of the audio to use for output and returns a Promise. This only works when application is authorized to use the specified device.

HTMLMediaElement.setSinkId(sinkId).then(function() { ... })

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

Method.

The HTMLMediaElement.setSinkId() method sets the ID of the audio
to use for output and returns a Promise. This only works when
application is authorized to use the specified device.

`HTMLMediaElement.setSinkId(sinkId).then(function() { ... })`

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

set-sink-id!cljs

(set-sink-id! this val)

Property.

The HTMLMediaElement.sinkId read-only property returns a dom.DOMString is the unique ID of the audio device delivering output. If it using the user agent default, it returns an empty string. This should be one of the media.MediaDeviceInfo.deviceId values from media.MediaDevices.enumerateDevices(), id-multimedia, id-communications.

var sinkId = HTMLMediaElement.sinkId

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

Property.

The HTMLMediaElement.sinkId read-only property returns a `dom.DOMString`
is the unique ID of the audio device delivering output. If it
using the user agent default, it returns an empty string. This
should be one of the `media.MediaDeviceInfo.deviceId` values
from `media.MediaDevices.enumerateDevices()`, id-multimedia,
id-communications.

`var sinkId = HTMLMediaElement.sinkId`

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

set-src!cljs

(set-src! this val)

Property.

The HTMLMediaElement.src property reflects the value of the HTML element's src attribute, which indicates the URL of a media resource use in the element.

var mediaUrl = HTMLMediaElement.src;

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

Property.

The HTMLMediaElement.src property reflects the value of the HTML
element's src attribute, which indicates the URL of a media resource
use in the element.

`var mediaUrl = HTMLMediaElement.src;`

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

set-src-object!cljs

(set-src-object! this val)

Property.

The srcObject property of the html.HTMLMediaElement interface or returns the object which serves as the source of the media with the html.HTMLMediaElement.

`var sourceObject = HTMLMediaElement.srcObject;

HTMLMediaElement.srcObject = sourceObject;`

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

Property.

The srcObject property of the `html.HTMLMediaElement` interface
or returns the object which serves as the source of the media
with the `html.HTMLMediaElement`.

`var sourceObject = HTMLMediaElement.srcObject;

HTMLMediaElement.srcObject = sourceObject;`

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

set-text-tracks!cljs

(set-text-tracks! this val)

Property.

The read-only textTracks property on html.HTMLMediaElement returns a web.TextTrackList object listing all of the web.TextTrack representing the media element's text tracks

var textTracks = mediaElement.textTracks;

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

Property.

The read-only textTracks property on `html.HTMLMediaElement`
returns a `web.TextTrackList` object listing all of the `web.TextTrack`
representing the media element's text tracks

`var textTracks = mediaElement.textTracks;`

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

set-video-tracks!cljs

(set-video-tracks! this val)

Property.

The read-only videoTracks property on html.HTMLMediaElement returns a web.VideoTrackList object listing all of the web.VideoTrack representing the media element's video tracks.

var videoTracks = mediaElement.videoTracks;

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

Property.

The read-only videoTracks property on `html.HTMLMediaElement`
returns a `web.VideoTrackList` object listing all of the `web.VideoTrack`
representing the media element's video tracks.

`var videoTracks = mediaElement.videoTracks;`

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

set-volume!cljs

(set-volume! this val)

Property.

The HTMLMediaElement.volume property sets the volume at which media will be played.

var volume ​= video.volume; //1

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

Property.

The HTMLMediaElement.volume property sets the volume at which
media will be played.

`var volume ​= video.volume; //1`

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

sink-idcljs

(sink-id this)

Property.

The HTMLMediaElement.sinkId read-only property returns a dom.DOMString is the unique ID of the audio device delivering output. If it using the user agent default, it returns an empty string. This should be one of the media.MediaDeviceInfo.deviceId values from media.MediaDevices.enumerateDevices(), id-multimedia, id-communications.

var sinkId = HTMLMediaElement.sinkId

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

Property.

The HTMLMediaElement.sinkId read-only property returns a `dom.DOMString`
is the unique ID of the audio device delivering output. If it
using the user agent default, it returns an empty string. This
should be one of the `media.MediaDeviceInfo.deviceId` values
from `media.MediaDevices.enumerateDevices()`, id-multimedia,
id-communications.

`var sinkId = HTMLMediaElement.sinkId`

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

srccljs

(src this)

Property.

The HTMLMediaElement.src property reflects the value of the HTML element's src attribute, which indicates the URL of a media resource use in the element.

var mediaUrl = HTMLMediaElement.src;

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

Property.

The HTMLMediaElement.src property reflects the value of the HTML
element's src attribute, which indicates the URL of a media resource
use in the element.

`var mediaUrl = HTMLMediaElement.src;`

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

src-objectcljs

(src-object this)

Property.

The srcObject property of the html.HTMLMediaElement interface or returns the object which serves as the source of the media with the html.HTMLMediaElement.

`var sourceObject = HTMLMediaElement.srcObject;

HTMLMediaElement.srcObject = sourceObject;`

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

Property.

The srcObject property of the `html.HTMLMediaElement` interface
or returns the object which serves as the source of the media
with the `html.HTMLMediaElement`.

`var sourceObject = HTMLMediaElement.srcObject;

HTMLMediaElement.srcObject = sourceObject;`

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

text-trackscljs

(text-tracks this)

Property.

The read-only textTracks property on html.HTMLMediaElement returns a web.TextTrackList object listing all of the web.TextTrack representing the media element's text tracks

var textTracks = mediaElement.textTracks;

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

Property.

The read-only textTracks property on `html.HTMLMediaElement`
returns a `web.TextTrackList` object listing all of the `web.TextTrack`
representing the media element's text tracks

`var textTracks = mediaElement.textTracks;`

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

video-trackscljs

(video-tracks this)

Property.

The read-only videoTracks property on html.HTMLMediaElement returns a web.VideoTrackList object listing all of the web.VideoTrack representing the media element's video tracks.

var videoTracks = mediaElement.videoTracks;

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

Property.

The read-only videoTracks property on `html.HTMLMediaElement`
returns a `web.VideoTrackList` object listing all of the `web.VideoTrack`
representing the media element's video tracks.

`var videoTracks = mediaElement.videoTracks;`

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

volumecljs

(volume this)

Property.

The HTMLMediaElement.volume property sets the volume at which media will be played.

var volume ​= video.volume; //1

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

Property.

The HTMLMediaElement.volume property sets the volume at which
media will be played.

`var volume ​= video.volume; //1`

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

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

× close