The HTMLMediaElement interface adds to web.dom.HTMLElement
properties and methods needed to support basic media-related
that are common to audio and video.
The HTMLMediaElement interface adds to `web.dom.HTMLElement` properties and methods needed to support basic media-related that are common to audio and video.
(add-text-track this & args)
Method.
Adds a text track (such as a track for subtitles) to a media
Method. Adds a text track (such as a track for subtitles) to a media
(audio-tracks this)
Property.
The read-only audioTracks property on web.media.HTMLMediaElement
returns an web.audio.AudioTrackList
object listing all of the
objects 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 `web.media.HTMLMediaElement` returns an `web.audio.AudioTrackList` object listing all of the objects representing the media element's audio tracks. `var audioTracks = mediaElement.audioTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/audioTracks`
(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`
(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`
(can-play-type this media-type)
Method.
The web.media.HTMLMediaElement
method canPlayType() reports
likely it is that the current browser will be able to play media
a given MIME type.
canPlayResponse = audioOrVideo.canPlayType(mediaType);
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType
Method. The `web.media.HTMLMediaElement` method canPlayType() reports likely it is that the current browser will be able to play media a given MIME type. `canPlayResponse = audioOrVideo.canPlayType(mediaType);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType`
(capture-stream this)
Method.
The captureStream() property of the web.media.HTMLMediaElement
returns a web.streams.MediaStream
object which is streaming
real-time capture of the content being rendered in the media
var mediaStream = mediaElement.captureStream()
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/captureStream
Method. The captureStream() property of the `web.media.HTMLMediaElement` returns a `web.streams.MediaStream` object which is streaming real-time capture of the content being rendered in the media `var mediaStream = mediaElement.captureStream()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/captureStream`
(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`
(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`
(controls-list this)
Property.
The controlsList property of the web.media.HTMLMediaElement
returns a DOMTokenList that helps the user agent select what
to show on the media element whenever the user agent shows its
set of controls. The DOMTokenList takes one or more of three
values: 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 `web.media.HTMLMediaElement` returns a DOMTokenList that helps the user agent select what to show on the media element whenever the user agent shows its set of controls. The DOMTokenList takes one or more of three values: nodownload, nofullscreen, and noremoteplayback. `var domTokenList = HTMLMediaElement.controlsList;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/controlsList`
(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`
(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`
(current-time this)
Property.
The web.media.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 `web.media.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`
(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 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 `muted` property. `var dMuted = video.defaultMuted; audio.defaultMuted = true;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultMuted`
(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`
(duration this)
Property.
The read-only web.media.HTMLMediaElement
property duration
the 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 `web.media.HTMLMediaElement` property duration the length of the element's media in seconds. `myDuration = htmlMediaElement.duration` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/duration`
(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`
(error this)
Property.
The HTMLMediaElement.error is the web.audio.MediaError
object
the most recent error, or null if there has not been an error.
an error event is received by the element, you can determine
about 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 `web.audio.MediaError` object the most recent error, or null if there has not been an error. an error event is received by the element, you can determine about what happened by examining this object. `var myError = HTMLMediaElement.error;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/error`
(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`
(html-media this)
Property.
The read-only textTracks property on web.media.HTMLMediaElement
returns a web.media.TextTrackList
object listing all of the
objects 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 `web.media.HTMLMediaElement` returns a `web.media.TextTrackList` object listing all of the objects representing the media element's text tracks `var textTracks = mediaElement.textTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/textTracks`
(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 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 `HTMLMediaElement.src` attribute instead. `...` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/initialTime`
(load this)
Method.
The web.media.HTMLMediaElement
method load() resets the media
to 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 `web.media.HTMLMediaElement` method load() resets the media to 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`
(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`
(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`
(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`
(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`
(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`
(onencrypted this)
Property.
The onencrypted property of the web.media.HTMLMediaElement
an event handler, fired whenever an encrypted event occurs, denoting
media 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 `web.media.HTMLMediaElement` an event handler, fired whenever an encrypted event occurs, denoting media is encrypted. `HTMLMediaElement.onencrypted = function(encrypted) { ... }` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onencrypted`
(onerror this)
Property.
The onerror property of the web.media.HTMLMediaElement
interface
the 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 `web.media.HTMLMediaElement` interface the `EventHandler` for processing error events. `HTMLMediaElement.onerror = EventListener;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onerror`
(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`
(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`
(play this)
Method.
The web.media.HTMLMediaElement
method play() attempts to begin
of the media. It returns a js.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 `web.media.HTMLMediaElement` method play() attempts to begin of the media. It returns a `js.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`
(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`
(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`
(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`
(seekable this)
Property.
The seekable read-only property of the web.media.HTMLMediaElement
a web.media.TimeRanges
object that contains the time ranges
the 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 `web.media.HTMLMediaElement` a `web.media.TimeRanges` object that contains the time ranges the 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`
(set-audio-tracks! this val)
Property.
The read-only audioTracks property on web.media.HTMLMediaElement
returns an web.audio.AudioTrackList
object listing all of the
objects 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 `web.media.HTMLMediaElement` returns an `web.audio.AudioTrackList` object listing all of the objects representing the media element's audio tracks. `var audioTracks = mediaElement.audioTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/audioTracks`
(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`
(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`
(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`
(set-controls-list! this val)
Property.
The controlsList property of the web.media.HTMLMediaElement
returns a DOMTokenList that helps the user agent select what
to show on the media element whenever the user agent shows its
set of controls. The DOMTokenList takes one or more of three
values: 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 `web.media.HTMLMediaElement` returns a DOMTokenList that helps the user agent select what to show on the media element whenever the user agent shows its set of controls. The DOMTokenList takes one or more of three values: nodownload, nofullscreen, and noremoteplayback. `var domTokenList = HTMLMediaElement.controlsList;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/controlsList`
(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`
(set-current-time! this val)
Property.
The web.media.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 `web.media.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`
(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 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 `muted` property. `var dMuted = video.defaultMuted; audio.defaultMuted = true;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultMuted`
(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`
(set-html-media! this val)
Property.
The read-only textTracks property on web.media.HTMLMediaElement
returns a web.media.TextTrackList
object listing all of the
objects 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 `web.media.HTMLMediaElement` returns a `web.media.TextTrackList` object listing all of the objects representing the media element's text tracks `var textTracks = mediaElement.textTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/textTracks`
(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`
(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`
(set-media-keys this media-keys)
Method.
The setMediaKeys() property of the web.media.HTMLMediaElement
returns a js.Promise
that resolves to the passed web.audio.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 `web.media.HTMLMediaElement` returns a `js.Promise` that resolves to the passed `web.audio.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`
(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`
(set-onencrypted! this val)
Property.
The onencrypted property of the web.media.HTMLMediaElement
an event handler, fired whenever an encrypted event occurs, denoting
media 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 `web.media.HTMLMediaElement` an event handler, fired whenever an encrypted event occurs, denoting media is encrypted. `HTMLMediaElement.onencrypted = function(encrypted) { ... }` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onencrypted`
(set-onerror! this val)
Property.
The onerror property of the web.media.HTMLMediaElement
interface
the 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 `web.media.HTMLMediaElement` interface the `EventHandler` for processing error events. `HTMLMediaElement.onerror = EventListener;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onerror`
(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`
(set-seekable! this val)
Property.
The seekable read-only property of the web.media.HTMLMediaElement
a web.media.TimeRanges
object that contains the time ranges
the 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 `web.media.HTMLMediaElement` a `web.media.TimeRanges` object that contains the time ranges the 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`
(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`
(set-sink-id! this val)
Property.
The HTMLMediaElement.sinkId read-only property returns a web.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 MediaDeviceInfo.deviceId
values returned
MediaDevices.enumerateDevices()
, id-multimedia, or 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 `web.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 `MediaDeviceInfo.deviceId` values returned `MediaDevices.enumerateDevices()`, id-multimedia, or id-communications. `var sinkId = HTMLMediaElement.sinkId` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/sinkId`
(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`
(set-src-object! this val)
Property.
The srcObject property of the web.media.HTMLMediaElement
interface
or returns the object which serves as the source of the media
with the web.media.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 `web.media.HTMLMediaElement` interface or returns the object which serves as the source of the media with the `web.media.HTMLMediaElement`. `var sourceObject = HTMLMediaElement.srcObject; HTMLMediaElement.srcObject = sourceObject;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject`
(set-video-tracks! this val)
Property.
The read-only videoTracks property on web.media.HTMLMediaElement
returns a web.video.VideoTrackList
object listing all of the
objects 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 `web.media.HTMLMediaElement` returns a `web.video.VideoTrackList` object listing all of the objects representing the media element's video tracks. `var videoTracks = mediaElement.videoTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/videoTracks`
(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`
(sink-id this)
Property.
The HTMLMediaElement.sinkId read-only property returns a web.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 MediaDeviceInfo.deviceId
values returned
MediaDevices.enumerateDevices()
, id-multimedia, or 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 `web.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 `MediaDeviceInfo.deviceId` values returned `MediaDevices.enumerateDevices()`, id-multimedia, or id-communications. `var sinkId = HTMLMediaElement.sinkId` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/sinkId`
(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`
(src-object this)
Property.
The srcObject property of the web.media.HTMLMediaElement
interface
or returns the object which serves as the source of the media
with the web.media.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 `web.media.HTMLMediaElement` interface or returns the object which serves as the source of the media with the `web.media.HTMLMediaElement`. `var sourceObject = HTMLMediaElement.srcObject; HTMLMediaElement.srcObject = sourceObject;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject`
(video-tracks this)
Property.
The read-only videoTracks property on web.media.HTMLMediaElement
returns a web.video.VideoTrackList
object listing all of the
objects 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 `web.media.HTMLMediaElement` returns a `web.video.VideoTrackList` object listing all of the objects representing the media element's video tracks. `var videoTracks = mediaElement.videoTracks;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/videoTracks`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close