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.
(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`
(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 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`
(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`
(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 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`
(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 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`
(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`
(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`
(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`
(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`
(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 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`
(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`
(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`
(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`
(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 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`
(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`
(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`
(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 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`
(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 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`
(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`
(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 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`
(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 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`
(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`
(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-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`
(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 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`
(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 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`
(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`
(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`
(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 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`
(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 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`
(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 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`
(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`
(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`
(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 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`
(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 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`
(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`
(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`
(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