HTML Audio/Video DOM Reference / PDF






                       Sample of the pdf document :  






HTML Audio and Video DOM Reference
The HTML5 DOM has methods, properties, and events for the <audio> and <video> elements.
These methods, properties, and events allow you to manipulate <audio> and <video> elements using JavaScript.






HTML Audio/Video Methods
Method
Description
Adds a new text track to the audio/video
Checks if the browser can play the specified audio/video type
Re-loads the audio/video element
Starts playing the audio/video
Pauses the currently playing audio/video


HTML Audio/Video Properties
Property
Description
Returns an AudioTrackList object representing available audio tracks
Sets or returns if the audio/video should start playing as soon as it is loaded
Returns a TimeRanges object representing the buffered parts of the audio/video
Returns the MediaController object representing the current media controller of the audio/video
Sets or returns if the audio/video should display controls (like play/pause etc.)
crossOrigin
Sets or returns the CORS settings of the audio/video
Returns the URL of the current audio/video
Sets or returns the current playback position in the audio/video (in seconds)
Sets or returns if the audio/video is muted by default
Sets or returns the default speed of the audio/video playback
Returns the length of the current audio/video (in seconds)
Returns if the playback of the audio/video has ended or not
Returns a MediaError object representing the error state of the audio/video
Sets or returns if the audio/video should start over again when finished
Sets or returns a the group the audio/video belongs to (used to link multiple audio/video elements)
Sets or returns if the audio/video is muted or not
Returns the current network state of the audio/video
Sets or returns if the audio/video is paused or not
Sets or returns the speed of the audio/video playback
Returns a TimeRanges object representing the played parts of the audio/video
Sets or returns if the audio/video should be loaded when the page loads
Returns the current ready state of the audio/video
Returns a TimeRanges object representing the seekable parts of the audio/video
Returns if the user is currently seeking in the audio/video
Sets or returns the current source of the audio/video element
Returns a Date object representing the current time offset
Returns a TextTrackList object representing the available text tracks
Returns a VideoTrackList object representing the available video tracks
Sets or returns the volume of the audio/video










   Click here for  Download PDF / FREE
        

0 commentaires: