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.
[Read Only] [Draft]
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. [Read Only] [Draft] 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.
[Read Only]
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. [Read Only] 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.
[Read Only] [Experimental]
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. [Read Only] [Experimental] 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.
[Read Only]
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. [Read Only] 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`
(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.
[Read Only]
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. [Read Only] 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.
[Read Only]
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. [Read Only] 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.
[Read Only]
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. [Read Only] 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.
[Experimental]
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. [Experimental] 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.
[Read Only] [Draft]
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. [Read Only] [Draft] 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.
[Read Only] [Obsolute]
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. [Read Only] [Obsolute] 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`
(media-keys this)
Property.
Returns a MediaKeys object or null. MediaKeys is a set of keys an associated HTMLMediaElement can use for decryption of media during playback.
Property. Returns a MediaKeys object or null. MediaKeys is a set of keys an associated HTMLMediaElement can use for decryption of media during playback.
(moz-audio-captured this)
Property.
Returns a Boolean. Related to audio stream capture.
Property. Returns a Boolean. Related to audio stream capture.
(moz-capture-stream this & args)
Method.
[enter description]
Method. [enter description]
(moz-capture-stream-until-ended this & args)
Method.
[enter description]
Method. [enter description]
(moz-fragment-end this)
Property.
Is a double that provides access to the fragment end time if media element has a fragment URI for currentSrc, otherwise it equal to the media duration.
Property. Is a double that provides access to the fragment end time if media element has a fragment URI for currentSrc, otherwise it equal to the media duration.
(moz-frame-buffer-length this)
Property.
Is a unsigned long that indicates the number of samples that be returned in the framebuffer of each MozAudioAvailable event. number is a total for all channels, and by default is set to the number of channels * 1024 (e.g., 2 channels * 1024 samples 2048 total). The mozFrameBufferLength property can be set to a new value lower latency, larger amounts of data, etc. The size given must a number between 512 and 16384. Using any other size results an exception being thrown. The best time to set a new length after the loadedmetadata event fires, when the audio info is but before the audio has started or MozAudioAvailable events begun firing.
Property. Is a unsigned long that indicates the number of samples that be returned in the framebuffer of each MozAudioAvailable event. number is a total for all channels, and by default is set to the number of channels * 1024 (e.g., 2 channels * 1024 samples 2048 total). The mozFrameBufferLength property can be set to a new value lower latency, larger amounts of data, etc. The size given must a number between 512 and 16384. Using any other size results an exception being thrown. The best time to set a new length after the loadedmetadata event fires, when the audio info is but before the audio has started or MozAudioAvailable events begun firing.
(moz-get-metadata this & args)
Method.
Returns Object, which contains properties that represent metadata the playing media resource as {key: value} pairs. A separate of the data is returned each time the method is called. This must be called after the loadedmetadata event fires.
Method. Returns Object, which contains properties that represent metadata the playing media resource as {key: value} pairs. A separate of the data is returned each time the method is called. This must be called after the loadedmetadata event fires.
(moz-sample-rate this)
Property.
Returns a double representing the number of samples per second will be played. For example, 44100 samples per second is the rate used by CD audio.
Property. Returns a double representing the number of samples per second will be played. For example, 44100 samples per second is the rate used by CD audio.
(ms-insert-audio-effect this & args)
Method.
[Non Standard]
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. [Non Standard] 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.
[Read Only]
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. [Read Only] 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.
[Experimental]
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. [Experimental] 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`
(onwaitingforkey this)
Property.
[Experimental]
The onwaitingforkey property of the web.media.HTMLMediaElement
an 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. [Experimental] The onwaitingforkey property of the `web.media.HTMLMediaElement` an 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.
[Read Only]
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. [Read Only] 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`
(played this)
Property.
Returns a TimeRanges object that contains the ranges of the media that the browser has played, if any.
Property. Returns a TimeRanges object that contains the ranges of the media that the browser has played, if any.
(preload this)
Property.
Is a DOMString that reflects the preload HTML attribute, indicating data should be preloaded, if any. Possible values are: none, auto.
Property. Is a DOMString that reflects the preload HTML attribute, indicating data should be preloaded, if any. Possible values are: none, auto.
(preserves-pitch this)
Property.
Is a Boolean that determines if the pitch of the sound will be If set to false, the pitch will adjust to the speed of the audio. is implemented with prefixes in Firefox (mozPreservesPitch) and (webkitPreservesPitch).
Property. Is a Boolean that determines if the pitch of the sound will be If set to false, the pitch will adjust to the speed of the audio. is implemented with prefixes in Firefox (mozPreservesPitch) and (webkitPreservesPitch).
(ready-state this)
Property.
[Read Only]
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. [Read Only] 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.
[Non Standard] [Experimental]
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. [Non Standard] [Experimental] 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.
[Read Only]
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. [Read Only] 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`
(seeking this)
Property.
Returns a Boolean that indicates whether the media is in the of seeking to a new position.
Property. Returns a Boolean that indicates whether the media is in the of seeking to a new position.
(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-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-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.
[Experimental]
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. [Experimental] 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-media-keys! this val)
Property.
Returns a MediaKeys object or null. MediaKeys is a set of keys an associated HTMLMediaElement can use for decryption of media during playback.
Property. Returns a MediaKeys object or null. MediaKeys is a set of keys an associated HTMLMediaElement can use for decryption of media during playback.
(set-moz-audio-captured! this val)
Property.
Returns a Boolean. Related to audio stream capture.
Property. Returns a Boolean. Related to audio stream capture.
(set-moz-fragment-end! this val)
Property.
Is a double that provides access to the fragment end time if media element has a fragment URI for currentSrc, otherwise it equal to the media duration.
Property. Is a double that provides access to the fragment end time if media element has a fragment URI for currentSrc, otherwise it equal to the media duration.
(set-moz-frame-buffer-length! this val)
Property.
Is a unsigned long that indicates the number of samples that be returned in the framebuffer of each MozAudioAvailable event. number is a total for all channels, and by default is set to the number of channels * 1024 (e.g., 2 channels * 1024 samples 2048 total). The mozFrameBufferLength property can be set to a new value lower latency, larger amounts of data, etc. The size given must a number between 512 and 16384. Using any other size results an exception being thrown. The best time to set a new length after the loadedmetadata event fires, when the audio info is but before the audio has started or MozAudioAvailable events begun firing.
Property. Is a unsigned long that indicates the number of samples that be returned in the framebuffer of each MozAudioAvailable event. number is a total for all channels, and by default is set to the number of channels * 1024 (e.g., 2 channels * 1024 samples 2048 total). The mozFrameBufferLength property can be set to a new value lower latency, larger amounts of data, etc. The size given must a number between 512 and 16384. Using any other size results an exception being thrown. The best time to set a new length after the loadedmetadata event fires, when the audio info is but before the audio has started or MozAudioAvailable events begun firing.
(set-moz-sample-rate! this val)
Property.
Returns a double representing the number of samples per second will be played. For example, 44100 samples per second is the rate used by CD audio.
Property. Returns a double representing the number of samples per second will be played. For example, 44100 samples per second is the rate used by CD audio.
(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.
[Experimental]
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. [Experimental] 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-onwaitingforkey! this val)
Property.
[Experimental]
The onwaitingforkey property of the web.media.HTMLMediaElement
an 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. [Experimental] The onwaitingforkey property of the `web.media.HTMLMediaElement` an 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-played! this val)
Property.
Returns a TimeRanges object that contains the ranges of the media that the browser has played, if any.
Property. Returns a TimeRanges object that contains the ranges of the media that the browser has played, if any.
(set-preload! this val)
Property.
Is a DOMString that reflects the preload HTML attribute, indicating data should be preloaded, if any. Possible values are: none, auto.
Property. Is a DOMString that reflects the preload HTML attribute, indicating data should be preloaded, if any. Possible values are: none, auto.
(set-preserves-pitch! this val)
Property.
Is a Boolean that determines if the pitch of the sound will be If set to false, the pitch will adjust to the speed of the audio. is implemented with prefixes in Firefox (mozPreservesPitch) and (webkitPreservesPitch).
Property. Is a Boolean that determines if the pitch of the sound will be If set to false, the pitch will adjust to the speed of the audio. is implemented with prefixes in Firefox (mozPreservesPitch) and (webkitPreservesPitch).
(set-seeking! this val)
Property.
Returns a Boolean that indicates whether the media is in the of seeking to a new position.
Property. Returns a Boolean that indicates whether the media is in the of seeking to a new position.
(set-sink-id this sink-id)
Method.
[Experimental]
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. [Experimental] 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-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-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.
[Read Only] [Experimental]
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. [Read Only] [Experimental] 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.
[Read Only] [Draft]
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. [Read Only] [Draft] 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