HTMLMediaElement
Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video.
§Extends
§Properties
Gets or sets a value that indicates whether to start playing the media automatically.
Gets a collection of buffered time ranges.
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
Returns an object representing the current error state of the audio or video element.
Gets or sets a flag to specify whether playback should restart after it completes.
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
Gets TimeRanges for the current media resource that has been played.
Gets or sets a value indicating what data should be preloaded, if any.
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
§Methods
Returns a string that specifies whether the client can play a given media resource type.
Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not.