Skip to content
Evandro Leopoldino Gonçalves edited this page May 23, 2025 · 6 revisions

Both properties are getter and setter:

  • audio.volume: number
  • audio.loop: boolean

Read-only property:

  • audio.state: 'running' | 'suspended' | 'closed'
    • suspended: the audio has been suspended.
    • running: the audio is running.
    • closed: the audio has been closed.
  • audio.audioCtx: AudioContext
  • audio.duration: number
  • audio.currentTime: number

Clone this wiki locally