

Setting this value seeks the media to the new time. HTMLMediaElement.currentTimeĪ double-precision floating-point value indicating the current playback time in seconds if the media has not started to play and has not been seeked, this value is the media's initial playback time. Returns a DOMString with the absolute URL of the chosen media resource. HTMLMediaElement.crossOriginĪ DOMString indicating the CORS setting for this media element. The DOMTokenList takes one or more of three possible values: nodownload, nofullscreen, and noremoteplayback. Returns a DOMTokenList that helps the user agent select what controls to show on the media element whenever the user agent shows its own set of controls. Is a Boolean that reflects the controls HTML attribute, indicating whether user interface items for controlling the resource should be displayed. Is a MediaController object that represents the media controller assigned to the element, or null if none is assigned. Returns a TimeRanges object that indicates the ranges of the media source that the browser has buffered (if any) at the moment the buffered property is accessed.
Source unpack missing interface code#
Keep in mind that browsers may ignore autoplay requests, so you should ensure that your code isn't dependent on autoplay working. See the Autoplay guide for media and Web Audio APIs for more information. Note: Automatically playing audio when the user doesn't expect or desire it is a poor user experience and should be avoided in most cases, though there are exceptions.
