Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

448 CHAPTER 11 HTML5 supports multimedia


■■buffered Gets a reference to the TimeRanges object that represents the buffered
parts of the audio or video
■■controller Gets a reference to the MediaController object representing the current
media controller of the audio or video
■■controls Sets or gets the indicator that determines whether the audio or video
should display playback controls to the user
■■crossOrigin Sets or gets the CORS settings of the audio or video
■■currentSrc Gets the URL of the current audio or video
■■currentTime Sets or gets the current playback position in seconds
■■defaultMuted Sets or gets the indicator that determines whether the audio or video
is muted by default
■■defaultPlaybackRate Sets or gets the default speed of the audio or video playback
■■duration Gets the length in seconds of the current audio or video
■■ended Gets the indicator that determines whether the playback of the audio or video
has ended
■■error Gets a reference to a MediaError object representing the error state of the
audio or video
■■loop Sets or gets an indicator that determines whether the audio or video should
automatically restart when it reaches the end of the stream
■■mediaGroup Sets or gets the group to which the audio or video belongs, which is
used to link multiple audio or video elements
■■muted Sets or gets an indicator that determines whether the audio or video is muted
■■networkState Gets a reference to the current network state of the audio or video
■■paused Sets or gets an indicator that determines whether the audio or video is
paused
■■playbackRate Sets or gets the speed of the audio or video playback
■■played Gets a reference to a TimeRanges object that represents the played parts of
the audio or video
■■preload Sets or gets an indicator that determines whether the audio or video should
be loaded when the page loads
■■readyState Gets an indicator of the current ready state of the audio or video
■■seekable Gets a reference to a TimeRanges object that represents the seekable parts
of the audio or video
■■seeking Gets an indicator that determines whether the user is currently seeking in
the audio or video
■■src Sets or gets the current source of the audio or video
■■startDate Gets a Date object representing the current time offset
Free download pdf