Skip to main content
Helios provides comprehensive audio support with precise synchronization, multi-track mixing, and per-track volume control. Audio elements are automatically discovered and synchronized with the timeline.

Audio synchronization

Audio elements in your composition are automatically synchronized with Helios playback when using the DomDriver.

How it works

  1. Automatic discovery: The DomDriver scans the DOM for <audio> and <video> elements with data-helios-track attributes
  2. Synchronization: Media playback is kept in sync with the Helios timeline
  3. Precise seeking: Audio seeks to the exact position when you seek the Helios timeline
  4. Rate control: Playback rate changes are synchronized

Audio tracks

Identify audio elements with the data-helios-track attribute to enable automatic discovery and control.

Track metadata

Discovered audio tracks are exposed through the availableAudioTracks signal:
string
Track identifier from data-helios-track
string
Human-readable track name

Volume control

Control audio volume at both the global and per-track level.

Global volume

Per-track volume

Audio state

The audio state is exposed through Helios signals and state:
number
Master volume level (0.0 to 1.0)
boolean
Master mute state
Record<string, AudioTrackState>
Per-track volume and mute states
AudioTrackMetadata[]
List of discovered audio tracks

Audio visualization

Access the Web Audio API for audio analysis and visualization.

Getting the audio context

Getting track source nodes

Example: Waveform visualization

Manual track management

In headless or server environments where DOM scanning isn’t available, manually specify available tracks:

Common patterns

Audio mixer UI

Dynamic audio ducking

Audio-reactive animations

Programmatic audio control