Methods
This section describes the methods associated with the HTML5 Audio and Video APIs.
In this section
| Topic | Description |
|---|---|
|
Aborts the processing of the current media segment. | |
|
Add a TextTrackCue object to a TextTrack list of cues. | |
|
Creates a new SourceBuffer and adds it to the SourceBuffers property of the MediaSource. | |
|
Create a new TextTrack object to add to an HTML5 video. | |
|
Appends the specified media segment to the SourceBuffer. | |
|
Appends the media segment data from the specified stream to the SourceBuffer. | |
|
Returns a string that specifies whether the client can play a given media resource type. | |
|
Closes the media key session and release any resources associated with it. | |
|
Creates a new MediaKeys object for keySystem. | |
|
Initiates a new session with the key system. | |
|
Returns the end of the time range by using the specified index. | |
|
Used to indicate that the end of the stream has been reached. | |
|
Call callback once for each key-value pair present in the MediaKeyStatus map. | |
|
Generates a request based on the initialization data. | |
|
Returns the MediaKeyStatus of the key identified by keyId. | |
|
Returns a MediaKeySystemConfiguration object containing the supported combination of configuration options. | |
|
Returns the TextTrackCue text (caption) as a document fragment consisting of HTML elements and other Document Object Model (DOM) nodes . | |
|
Returns the TextTrackCue (in cue order) for a specified id. | |
|
Returns the first track with the specified id in a track list. | |
|
Returns a VideoPlaybackQuality object from for a given video element. | |
|
Returns true if the status of the key identified by keyId is known. | |
|
Verifies if the MediaSource supports creating SourceBuffer objects for the specified MIME type. | |
|
Deprecated. Gets a value that indicates if the specified key system supports the specified media type. | |
|
Returns a track from a list that corresponds with the given index based on track order. | |
|
Gets the SourceBuffer object at the specified index. | |
|
Resets the audio or video object and loads a new media resource. | |
|
Loads the data stored for the specified session. | |
|
Clears all effects from the media pipeline. | |
|
Steps the video by one frame forward or one frame backward. | |
|
Inserts the specified audio effect into media pipeline. | |
|
Inserts the specified video effect into media pipeline. | |
|
Provides the MediaKeys to use when decrypting media during playback. | |
|
Specifies the media protection manager for a given media pipeline. | |
|
Sets the dimensions of a sub-rectangle within a video. | |
|
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. | |
|
Loads and starts playback of a media resource. | |
|
Removes the media segments defined by the specified time range from the SourceBuffer. | |
|
Removes stored session data. | |
|
Remove a specific TextTrackCue from a TextTrack's list of cues. | |
|
Removes a source buffer from the MediaSource object. | |
|
Requests access to the specified Key System. | |
|
A promise to a server certificate to be used to encrypt messages to the license server. | |
|
Gets the start of the time range by using the specified index. | |
|
Sends messages, including licenses, to the Content Decryption Module. |