Skip to main content

Module htmlmediaelement

Module htmlmediaelement 

Source

StructsΒ§

BufferedDataSource πŸ”’
HTMLMediaElement πŸ”’
HTMLMediaElementEventHandler πŸ”’
The HTMLMediaElementEventHandler is a structure responsible for handling media events for the HTMLMediaElement and exists to decouple ownership of the HTMLMediaElement from IPC router callback.
HTMLMediaElementFetchContext πŸ”’
HTMLMediaElementFetchListener πŸ”’
ShadowTree πŸ”’
Holds handles to all slots in the UA shadow tree
SourceChildrenPointer πŸ”’
https://html.spec.whatwg.org/multipage/#loading-the-media-resource:media-element-29

EnumsΒ§

CancelReason πŸ”’
Indicates the reason why a fetch request was cancelled.
DataBuffer πŸ”’
LoadState πŸ”’
LoopCondition πŸ”’
Generally the presence of the loop attribute should be considered to mean playback has not β€œended”, as β€œended” and β€œlooping” are mutually exclusive. https://html.spec.whatwg.org/multipage/#ended-playback
MediaElementMicrotask πŸ”’
MediaElementWeakRef πŸ”’
A weak reference to an HTMLMediaElement, remembering the concrete type of the referenced element.
NetworkState πŸ”’
https://html.spec.whatwg.org/multipage/#dom-media-networkstate
PlaybackDirection πŸ”’
https://html.spec.whatwg.org/multipage/#direction-of-playback
PlaybackPositionWasMoved πŸ”’
Used to determine whether the current playback position was changed during normal playback or not in https://html.spec.whatwg.org/multipage/#time-marches-on
ReadyState πŸ”’
https://html.spec.whatwg.org/multipage/#dom-media-readystate
Resource πŸ”’
SrcObject πŸ”’

ConstantsΒ§

SEEK_POSITION_THRESHOLD πŸ”’
The media engine may report a seek-done position that differs slightly from the requested position (e.g. snapping to the nearest keyframe), so we use a threshold instead of strict equality. (Unit is second)
_IMPL_DOMOBJECT_FOR_HTMLMediaElement πŸ”’

StaticsΒ§

MEDIA_CONTROL_CSS πŸ”’
A CSS file to style the media controls.
MEDIA_CONTROL_JS πŸ”’
A JS file to control the media controls.

Type AliasesΒ§

BoxedSliceOfPromises πŸ”’