ef-audio
Plays an audio file. Renders no visual output.
Plays an audio file. Renders no visual output.
| Attribute | React prop | Type | Default | Description |
|---|---|---|---|---|
src | same | string | — | URL of the source file. |
duration | same | CSS time | — | How long this element is active. |
offset | same | CSS time | 0 | When this element starts within a parent fixed-mode group. |
volume | same | number | 1.0 | Audio volume level (0.0 to 1.0) |
mute | same | boolean | false | Mute/unmute the media element |
fft-size | fftSize | number | 128 | FFT size for frequency analysis |
sourcein | sourceIn | CSS time | — | Start time within the source file. |
sourceout | sourceOut | CSS time | — | End time within the source file. |
trimstart | trimStart | CSS time | — | Trim this much off the start of the source. |
trimend | trimEnd | CSS time | — | Trim this much off the end of the source. |
Set fft-size if you want to pair the element with ef-waveform for visualization.