ReadonlybufferedReadonlycanTrue if the readyState is PlaybackReadyState.HAVE_FUTURE_DATA This will be true after a PlaybackControllerEventMap.canPlay event.
Note that security permissions may not allow a track to load past metadata before there has been a user interaction. This should not be relied upon before invoking PlaybackController.play.
ReadonlycanTrue if the readyState is PlaybackReadyState.HAVE_ENOUGH_DATA This will be true after a PlaybackControllerEventMap.canPlayThrough event.
Note that security permissions may not allow a track to load past metadata before there has been a user interaction. This should not be relied upon before invoking PlaybackController.play.
ReadonlycurrentThe current playback time in seconds. When changed, a 'timeUpdate' event is emitted.
ReadonlycurrentReturns current time as a percent of the total duration.
The default playback rate when the user is not using fast forward or reverse for a video or audio resource.
ReadonlydurationThe length of the element's media in seconds.
Observe changes with durationChange events.
ReadonlyendedIndicates whether the media element has ended playback.
ReadonlyerrorThe Error object for the most recent error, or null if there has not been an error. When an error event is received by the element, you can determine details about what happened by examining this object.
ReadonlyhasTrue if the readyState is at least PlaybackReadyState.HAVE_METADATA
This will be true after a PlaybackControllerEventMap.loadedMetadata event and false after an PlaybackControllerEventMap.emptied event.
Controls whether the media element should start over when it reaches the end.
Indicates whether the media element muted.
Observe changes with mutedChange events.
ReadonlynetworkIndicates the current state of the fetching of media over the network.
ReadonlypausedIndicates whether the media element is paused.
Observe changes with play and pause events.
Sets the rate at which the media is being played back. This is used to implement user controls for fast-forward, slow motion, and so forth. The normal playback rate is multiplied by this value to obtain the current rate, so a value of 1.0 indicates normal speed.
ReadonlyplayingTrue if playback has started, is not paused, stalled, or seeking. Observe changes with 'playing' and 'played' events.
ReadonlyplayTrue if play has been called and the returned promise is currently in a pending state.
Observe changes with PlaybackControllerEventMap.playIsPendingChange events.
Determines whether the browser should adjust the pitch of the audio to compensate for changes to the playback rate. Default: true
ReadonlyreadyIndicates the readiness state of the media. Observe changes with PlaybackControllerEventMap.readyStateChange events.
ReadonlyseekableReturns a new static normalized ReadonlyRanges object that represents the ranges of the
media resource, if any, that the user agent is able to seek to at the time seekable
property is accessed.
Note: ReadonlyRanges is a view to the DOM TimeRanges object.
ReadonlyseekingTrue if the element is currently seeking.
Observe changes with seeking and seeked events.
The volume level for audio portions of the media element.
Observe changes with volumeChange events.
ReadonlywaitingTrue if playback is stopped due to waiting for data.
Observe changes with waiting and waited events.
Returns true if the event host has any listeners.
Returns true if the event host has any listeners for the given type.
Adds an event handler for the given typed event.
The key representing the event type to listen for.
A callback to invoke when the event with the given type is dispatched.
Optionaloptions: SignalOptionsOptions for changing listening behavior.
Returns a method, when invoked, removes the handler.
Attempts to begin playback of the media. It returns a Promise which is resolved when playback has been successfully started.
Failure to begin playback for any reason, such as permission issues or interruption via pause, results in the promise being rejected.
The first time play() is invoked, except muted video, should be in response to a user interaction such as a button click.
Resets the error state.
Safely seeks to the given time.
The seek will begin only after readyState is at least
PlaybackReadyState.HAVE_METADATA.
If a previous seek was still pending, the previous seek will be ignored.
Returns a Promise that resolves when the seek has completed. If the seek is interrupted
by another seek, the promise will be rejected with an AbortError.
If the seek is not to a seekable range, the promise will reject with an InvalidSeekError.
The value, in seconds, to set the playback time.
Optionaltolerance: numberThe amount of tolerance to have when the time is outside the seekable ranges to snap, in seconds. If time is outside all seekable ranges beyond this tolerance, the seek will be ignored. Default: 0.5
Returns a new static normalized ReadonlyRanges object that represents the ranges of the media resource, if any, that the user agent has buffered at the moment the buffered property is accessed.
Note:
ReadonlyRangesis a view to the DOMTimeRangesobject.