HTMLMediaElement$Typings extension

on

Properties

addEventListener → ({void Function<K$>(HTMLMediaElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter
addTextTrack TextTrack Function(TextTrackKind, [String?, String?])
getter/setter pair
autoplay bool
Gets or sets a value that indicates whether to start playing the media automatically.
getter/setter pair
buffered TimeRanges
Gets a collection of buffered time ranges.
no setter
canPlayType CanPlayTypeResult Function(String)
getter/setter pair
controls bool
Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
getter/setter pair
crossOrigin String?
MDN Reference
getter/setter pair
currentSrc String
Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
no setter
currentTime num
Gets or sets the current playback position, in seconds.
getter/setter pair
defaultMuted bool
MDN Reference
getter/setter pair
defaultPlaybackRate num
Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
getter/setter pair
disableRemotePlayback bool
MDN Reference
getter/setter pair
duration num
Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
no setter
ended bool
Gets information about whether the playback has ended or not.
no setter
error MediaError?
Returns an object representing the current error state of the audio or video element.
no setter
fastSeek ↔ void Function(num)
getter/setter pair
haveCurrentData num
no setter
haveEnoughData num
no setter
haveFutureData num
no setter
haveMetadata num
no setter
haveNothing num
no setter
load ↔ void Function()
getter/setter pair
loop bool
Gets or sets a flag to specify whether playback should restart after it completes.
getter/setter pair
mediaKeys MediaKeys?
Available only in secure contexts.
no setter
muted bool
Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
getter/setter pair
networkEmpty num
no setter
networkIdle num
no setter
networkLoading num
no setter
networkNoSource num
no setter
networkState num
Gets the current network activity for the element.
no setter
onencrypted ↔ dynamic Function(MediaEncryptedEvent)?
MDN Reference
getter/setter pair
onwaitingforkey ↔ dynamic Function(Event)?
MDN Reference
getter/setter pair
pause ↔ void Function()
getter/setter pair
paused bool
Gets a flag that specifies whether playback is paused.
no setter
play Future<void> Function()
getter/setter pair
playbackRate num
Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
getter/setter pair
played TimeRanges
Gets TimeRanges for the current media resource that has been played.
no setter
preload Preload
Gets or sets a value indicating what data should be preloaded, if any.
getter/setter pair
preservesPitch bool
MDN Reference
getter/setter pair
readyState num
MDN Reference
no setter
remote RemotePlayback
no setter
removeEventListener → ({void Function<K$>(HTMLMediaElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter
seekable TimeRanges
Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
no setter
seeking bool
Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
no setter
setMediaKeys Future<void> Function([MediaKeys?])
getter/setter pair
src String
The address or URL of the a media resource that is to be considered.
getter/setter pair
srcObject Object?
MDN Reference
getter/setter pair
textTracks TextTrackList
MDN Reference
no setter
volume num
Gets or sets the volume level for audio portions of the media element.
getter/setter pair