ef-waveform

Animated audio waveform visualization driven by an ef-audio or ef-video element.

Animated audio waveform visualization.

target must be the id of an ef-audio or ef-video element in the same composition.

Attributes

AttributeReact propTypeDefaultDescription
bar-spacingbarSpacingnumber0.5Ratio of spacing between bars (0-1) in bar-based visual modes.
colorcolorstring"currentColor"`"currentColor"` (default) resolves the host's computed CSS `color`.
durationdurationstringHow long this element is active (CSS time, e.g. `"5s"`).
line-widthlineWidthnumber4Stroke width (px) in line/curve visual modes.
looploopbooleanfalseLoop attribute — when this temporal is a self-driving root under a {@link PlaybackController}, the controller wraps back to `0` instead of pausing at `duration`.
modemodeline | bars | roundBars | bricks | curve | pixel | wave | spikes"bars"Visual style of the waveform.
offsetoffsetnumberStart offset (seconds) within a parallel (`fixed`/`contain`/`fit`) parent timegroup.
targettargetstring""ID of the `<ef-audio>`/`<ef-video>` element to visualize.

CSS Parts

PartDescription
canvasThe rendering canvas. This canvas is a light DOM child element, not a shadow DOM element.

Events

EventDetailDescription
child-duration-changed{ duration: number }Fires on the nearest context-providing ancestor, when a nested media element's duration becomes known or changes.