Forwards these standard media attributes to the internal <video>. See the MDN media element reference: autopictureinpictureautoplaycontrolscontrolslistcrossorigindisablepictureinpicturedisableremoteplaybackloadingloopmutedplaysinlineposterpreloadsrc
These Video.js-specific attributes configure media behavior:
Attribute
Type
Default
Details
stream-type
MediaStreamType
—
Description
Current stream type ('on-demand', 'live', or 'unknown'). Defaults to 'unknown'; detecting hosts update it
automatically, and consumers can set it to override detection.
Properties
Property
Type
Default
Details
contentData
MediaContentData | undefined
—
Description
Read-only.
engine
dashjs.MediaPlayerClass
—
Description
Read-only. Underlying playback engine — the dash.js MediaPlayerClass instance. An advanced escape hatch for direct engine
access; normal playback is driven through this element's own properties and methods.
Structured source: the MPD URL in src, plus dash.js settings in engine.dashJs. Replacing it re-derives src.
Dash.js takes settings on a live player, so changing engine.dashJs re-applies them in place instead of recreating
the engine.
src
string
''
streamType
MediaStreamType
—
Description
Current stream type ('on-demand', 'live', or 'unknown'). Defaults to 'unknown'; detecting hosts update it
automatically, and consumers can set it to override detection.
Also exposes these properties from the native media API. See HTMLVideoElement for details: autoplaybufferedcontrolscrossOrigincurrentSrccurrentTimedefaultMuteddefaultPlaybackRatedisablePictureInPicturedisableRemotePlaybackdurationendederrorloopmutedpausedplaybackRateplayedplaysInlineposterpreloadreadyStateremoteseekableseekingtextTrackstitlevideoHeightvideoWidthvolume
Engine options
source.engine.dashJs
Pass dash.js’s own settings here. They’re handed to dash.js untouched, so every option in its settings reference works. Replacing the object resets any settings applied before it. Media Sources covers how engine options fit into a structured source.
Each of the three below is a group of dash.js settings rather than a single value, and dash.js documents what’s inside them.
Supports these media methods. See HTMLVideoElement for details: addTextTrackcanPlayTypeexitFullscreenexitPictureInPictureloadpauseplayrequestFullscreenrequestPictureInPicture
Events
Re-dispatches these standard media events from the internal media element: abortaddtrackcanplaycanplaythroughchangecontentdatachangedurationchangeemptiedendedenterpictureinpictureerrorleavepictureinpictureloadeddataloadedmetadataloadstartpauseplayplayingprogressratechangeremovetrackresizeseekedseekingstalledsuspendtimeupdatevolumechangewaiting
Also emits these Video.js-specific events:
Event
Description
sourcechange
Fired when `source` changes, either directly or by resolving a new `src`. Read `source` for the
new value.