Adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video.
Members
# autoplay
Gets or sets a value that indicates whether to start playing the media automatically.
# canPlayType
Returns a string that specifies whether the client can play a given media resource type.
# controls
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).
# currentSrc
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
# defaultPlaybackRate
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
# duration
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.
# error
Returns an object representing the current error state of the audio or video element.
# muted
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
# pause
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.
# playbackRate
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.
# seekable
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
# seeking
Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.