Properties

This section describes the properties associated with the HTML5 Audio and Video APIs.

Note  If you are developing locally or on an intranet and have rendering issues for HTML5, you can add a "meta http-equiv-'X-UA-Compatible' content= " meta command, followed by "IE=edge" to the <head> block of a webpage to force Windows Internet Explorer to use the latest standards. For more information about document compatibility, see Defining Document Compatibility.

In this section

TopicDescription

activeCues

Returns the TextTrackCues from the currently active TextTrackList as a TextTrackCueList object.

activeSourceBuffers

Gets the list of source buffers that are currently providing media data.

appendWindowEnd

Gets or sets the timestamp for the end of the append window.

appendWindowStart

Gets or sets the timestamp for the start of the append window.

audioTracks

Returns an AudioTrackList object with the audio tracks for a given video element.

autobuffer

Use the preload element instead. The autobuffer property was initially listed in the W3C spec, but has been dropped. No version of Internet Explorer supports it.

autoplay

Gets or sets a value that indicates whether to start playing the media automatically.

buffered

Gets a collection of buffered time ranges.

code

Gets the error code related to the MSMediaKeySession error state.

code (MediaError)

Returns the current HTMLMediaError code or null if no error has occurred.

constrictionActive

Returns true when protected media is forced to play in a lower resolution.

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).

creationTime

Gets the timestamp for when the VideoPlaybackQuality metrics were collected

cues

Returns the list of text track cues as a TextTrackCueList object.

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.

default

Gets or sets the default timed text track to use when multiple track elements are specified for a video element.

defaultPlaybackRate

Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.

destinationURL

Gets the URL to send the message to.

droppedVideoFrames

Gets the number of dropped video frames.

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.

duration (MediaSource)

Gets or sets the duration in seconds for the media.

enabled

Gets or sets whether an AudioTrack is enabled.

ended

Gets information about whether the playback has ended or not.

endTime

Returns the ending time, in seconds, for a text track cue.

error

Returns an object representing the current error state of the audio or video element.

error (MSMediaKeySession)

Gets the error state associated with the media key session.

height

Gets or sets the height of the video element.

id

Returns the TextTrackCue identifier.

initData

Gets the initialization data used by the key system.

initialTime

Gets the earliest possible position, in seconds, that the playback can begin.

item (SourceBufferList)

Gets the SourceBuffer object at the specified index.

keySystem

Gets the name of the key system used to decrypt the media data.

kind

Gets or sets the type or category of the timed text track associated with a track element.

label

Gets or sets the label attribute to create a user readable title for a text track.

language

Gets the BCP47 language tag of an AudioTrack or TextTrack if available, or an empty string if not.

length

Returns the number of tracks in a TextTrackList, TextTrackCueList, or AudioTrackList list object.

length (SourceBufferList)

Gets the number of SourceBuffer objects contained in the list.

length (TimeRanges)

The number of time ranges in the collection.

loop

Gets or sets a flag to specify whether playback should restart after it completes.

media

Gets or sets the intended media type of the media source.

message

Gets the message from the key system.

mode

Sets or gets a value that represents whether a text track is currently disabled, hidden, or showing.

msAudioCategory

Specifies the purpose of the audio or video media, such as background audio or alerts.

msAudioDeviceType

Specifies the output device id that the audio will be sent to.

msExtendedCode

Gets additional platform specific error information.

msGraphicsTrustStatus

Returns an object which provides information on protected video playback.

msHorizontalMirror

Gets or sets whether a video element is flipped horizontally in the display.

msIsBoxed

Gets or sets when the video player control is in boxed ( letterbox or pillarbox) mode.

msIsLayoutOptimalForPlayback

Indicates whether the video can be rendered more efficiently.

msIsStereo3D

Determines whether the system considers the video source that is loaded to be stereo 3-D or not.

msKeys

Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.

msKeySystem

Gets or sets the key system that manages the keys used to decrypt the media data.

msPlayToDisabled

Gets or sets whether the DLNA PlayTo device is available.

msPlayToPreferredSourceUri

Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.

msPlayToPrimary

Gets or sets the primary DLNA PlayTo device.

msPlayToSource

Gets the source associated with the media element for use by the PlayToManager.

msRealTime

Specifies whether or not to enable low-latency playback on the media element.

msStereo3DPackingMode

Gets or sets the frame-packing mode for stereo 3-D video content.

msStereo3DRenderMode

Gets or sets whether the system display is set to stereo display (if stereo-capable).

msZoom

Gets or sets whether the video frame is trimmed, on the top and bottom or left and right, to fit the video display.

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.

paused

Gets a flag that specifies whether playback is paused.

pauseOnExit

Returns the pause-on-exit flag on a TextTrackCue. When the flag is true, playback will pause when it reaches the cue's endTime.

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.

played

Gets TimeRanges for the current media resource that has been played.

poster

Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.

preload

Gets or sets a hint to how much buffering is advisable for a media resource, even if autoplay isn't specified.

readyState

Returns the readiness state of a TextTrack with values that let you determine whether the track is loaded, is loading, or failed to load.

readyState (media, audio, video)

Gets the current state of the media resource.

readyState (MediaSource)

Gets the current state of the MediaSource.

readyState (track)

Gets the current state of the track 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 the client is currently moving to a new playback position in the media resource.

sessionId

Gets the identification string that identifies the media key session.

sourceBuffer

Gets the source buffer associated with the audio track.

sourceBuffers

Gets the SourceBuffer objects that are attached to the MediaSource.

src

The address or URL of the a media resource (videoaudio) that is to be considered.

srclang

Gets or sets the language of the text track data. This attribute is required if "subtitles" is specified in the kind attribute.

startTime

Returns the text track cue start time in seconds.

status

Returns an enum with the driver status when playing protected content.

systemCode

Gets a key system specific error code for the MSMediaKeySession.error state.

text

Gets TextTrackCue text in un-parsed form.

textTracks

Returns a list of TextTrack objects from a video object.

timestampOffset

Gets or sets the timestamp offset for media segments appended to the SourceBuffer.

totalFrameDelay

Gets the sum of the delay for all of the displayed frames.

totalVideoFrames

Gets the total number of frames which would have been rendered if there were no dropped frames.

track

Returns the track that is loaded by the onaddtrack event.

track (HTMLTrackElement)

Returns the TextTrack object that corresponds to a track element.

track (TextTrackCue)

Returns the TextTrack object that the TextTrackCue belongs to, or null otherwise.

type

Gets or sets the MIME type of a media resource.

updating

Gets a value that specifies if appendBuffer, appendStream, or remove is in process.

videoHeight

Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.

videoWidth

Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.

volume

Gets or sets the volume level for audio portions of the media element.

width

Gets or sets the width of the video element.

 

 

 

Show:
© 2014 Microsoft