ReadonlyariaAccessible label for the media player region.
ReadonlyautoplayWhether to autoplay when a source is set.
ReadonlycontrolsWhether to show built-in transport controls.
ReadonlycrossCORS setting for the underlying media element.
Defaults to 'anonymous' so that cross-origin videos can be
drawn to a canvas for automatic poster-frame generation.
Set to null to omit the attribute entirely (disables
poster auto-generation for cross-origin resources).
ReadonlydisabledWhether the media player is disabled.
ReadonlyerrorSVG content for the error state icon (Lucide CircleAlert).
ReadonlyfitHow video is fitted within the viewport (CSS object-fit).
ReadonlyhasWhether the player is in an error state.
ReadonlyisWhether the player is in embed (iframe) mode rather than
native <video> / <audio> playback.
ReadonlyloopWhether playback should loop.
ReadonlymediaEmitted when playback ends.
ReadonlymediaEmitted on playback error.
ReadonlymediaEmitted when metadata (duration, dimensions) has loaded.
ReadonlymediaEmitted when playback is paused.
ReadonlymediaEmitted when playback begins.
ReadonlymediaEmitted when the current time changes (throttled to animation frames).
ReadonlymutedWhether the media should start muted.
ReadonlyplaybackAvailable playback rates for the rate selector.
ReadonlyposterPoster image URL shown before playback begins (video only).
When omitted (or set to an empty string) the component automatically captures a frame from the loaded video and uses it as the poster, so there is always a meaningful preview instead of a black rectangle.
ReadonlypreloadResource preload strategy.
ReadonlysourceThe media source (URL or Blob).
ReadonlysourcesMultiple sources for format fallback.
When provided, these are rendered as <source> elements inside
the media element, giving the browser format negotiation.
If source is also set it is prepended to this list.
ReadonlytracksText tracks (subtitles, captions, chapters, metadata).
ReadonlytypeThe type of media element to render.
ReadonlyvolumeInitial volume 0..1.
Pause playback.
Start or resume playback.
Request fullscreen on the media element (video only).
Seek to a specific time in seconds.
Set the playback rate.
Set the playback volume (0..1).
Toggle mute state.
Toggle between play and pause.
A versatile media player supporting audio and video playback from URL sources or in-memory binary blobs.
Built-in transport controls (play/pause, seek, volume, mute, playback rate, fullscreen) are shown by default but can be hidden via
[controls]="false"for fully custom UIs that drive the player programmatically.Text tracks (subtitles, captions, chapters, etc.) are supported via the
[tracks]input and rendered as native<track>elements, leaving room for future expansion.Example