ef-waveform-strip

This element is a timeline waveform strip.

This element is a timeline waveform strip.

Attributes

AttributeReact propTypeDefaultDescription
colorcolorstringWaveform color (any valid CSS color value); defaults to the audio track's theme color.
durationdurationnumberTrimmed clip duration in seconds, used to lay out the waveform.
heightheightnumberHeight of the strip in pixels (defaults to the element's rendered height, or 32).
mediamediaaudio | videoSource element kind — determines the hidden decoder element used.
pixels-per-secondpixelsPerSecondnumber100Zoom level — pixels rendered per second of composition time.
scroll-leftscrollLeftInClipnumberClip-local scroll offset of the timeline viewport's left edge — matches `ef-thumbnail-strip`.
sourceinsourceinstringStart time within the source (CSS time, e.g. `"1.5s"`), mirrored from the source element.
sourceoutsourceoutstringEnd time within the source (CSS time), mirrored from the source element.
srcsrcstring""URL of the source audio/video file to decode a waveform envelope from.
trimendtrimendstringTrims this much off the end of the clip (CSS time), mirrored from the source element.
trimstarttrimstartstringTrims this much off the start of the clip (CSS time), mirrored from the source element.
variantsvariantsstringAdaptive variant ladder URL, mirrored from the source `<ef-audio>`/`<ef-video>`.
viewport-widthviewportWidthnumberVisible viewport width in pixels, used to virtualize waveform painting.

CSS Parts

PartDescription
canvasThis part is the canvas that renders the waveform.