Provides methods and properties to play audio or video content to the user.
autobuffer autoplay Gets or sets a value that indicates whether to start playing the media automatically. buffered Gets a collection of buffered time ranges. 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 (video,audio) that is selected by IHTMLMediaElement. currentTime Gets or sets the current playback position, in seconds. defaultPlaybackRate Gets or sets the default playback rate when the user is not using fast foward or reverse for a video or audio resource. duration Gets the duration, in seconds, of the current media resource, a
NaNvalue if duration is not available, or
Infinityif the media resource is streaming.
ended Gets information about whether the playback has ended or not. error Gets an IHTMLMediaError object representing the current error state of the media element. initialTime Gets the earliest possible position, in seconds, that the playback can begin. load Resets the IHTMLMediaElement and loads a new media resource. loop Gets or sets a flag that specifies whether playback should restart after it completes. muted Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. networkState Gets the current network activity for the element. pause Pauses the current playback and sets IHTMLMediaElement::paused to TRUE. paused Gets a flag that specifies whether playback is paused. play Loads and starts playback of a media resource. playbackRate Gets or sets the current speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. played Gets TimeRanges for the current media resource that has been played. preload Gets or sets a hint to how much buffering is advisable for a media resource, even if IHTMLMediaElement::autoplay is not specified. 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. src The address or URL of the a media resource (video,audio) that is to be considered. volume Gets or sets the volume level for audio portions of the media element.
Stock Implementation mshtml.dll Custom Implementation No Inherits from IDispatch Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 9 Minimum operating systems Windows Vista SP1, Windows 7