Multimedia Properties-(read-only and writable)

Source: Internet
Author: User

*error: Read-only
use Media.error to return a Mediaerror object indicating the current error state, and if there are no errors, return null, a total of 4 values
(Media_err_abortio)

*CURRENTSRC Read Only
returns the SRC attribute value of the media tag

*networkstate Read Only
 
*preload can read and write
the preload attribute value of the media tag can be obtained and changed
 
*buffered Read Only
returns a Timeranges object confirming that the browser has cached media files

*readystate Read Only
returns the ready state of the media's current playback position, with a total of 5 values

*seeking Read Only
returns a Boolean value that indicates whether the browser is requesting data, True indicates that the browser is requesting data, and Flase represents the browser
Request stopped

*currenttime Read Only
get or change the playback position of the video

*starttime Read Only
returns the media file where the start of the playback is typically 0

*duration Read Only
returns the length of time the media file was played

*play Read Only
returns a Timeranges (time series) object indicating the range of media resources that the browser has played

*paused Read Only
returns a Boolean value that indicates whether the media pauses playback, ture means that the media is paused, and flase indicates that the media is playing

*ended Read Only
returns a Boolean value indicating whether the media has ended, and true indicates that the media has been played and false indicates that it has not finished playing

*defaultplaybackrate can read and write
returns the default playback rate of a medium, or assigns a value to it, changing the media's default playback rate

*playbackrate can read and write (Control Fast Forward rewind)
returns the current media playback rate, or assigns a value to it, changing the current media playback rate

*volume can read and write
returns the volume value of the current medium, or assigns it, changing the media's playback volume, ranging from 0 to 1, 0 to mute, 1-bit maximum

*muted can read and write
returns a Boolean value that indicates whether the current media playback is muted, true to mute, false to mute, or
its assignment to set whether playback is muted-l

Multimedia Properties-(read-only and writable)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.