Link Search Menu Expand Document

Audio

audio.ts#L7

Class AudioPlayer

constructor (src: string, defaultVolume: number, preload: boolean): AudioPlayer

Name Type Default Description
src string    
defaultVolume number 1  
preload boolean true  

Property .defaultVolume : number

Default value: 1

Property .player : HTMLAudioElement

Default value: ...

Property .src : string

Method .play (volume: number): void

Name Type Default Description
volume number    

Copyright © 2021 Mathigon.org