Skip to content

Type Alias: AudioWaveformPlayerState ​

ts
type AudioWaveformPlayerState = "idle" | "loading" | "ready" | "ended" | "error";

Playback state reported in AudioWaveformPlayerStateEvent.state.

  • idle: no source loaded.
  • loading: the source is set and the native player is buffering it.
  • ready: the player can play; check isPlaying to see whether it is.
  • ended: playback reached the end and loop is off.
  • error: the native player failed to load or play the source.

Released under the MIT License.