Properties
Protected Optional _destroyed
_destroyed: true
Protected _listeners
_listeners: object[]
Protected _ref
_ref: HTMLAudioElement
destroyed
destroyed: boolean
ref
ref: HTMLAudioElement
Methods
Protected _onSrcProbablyChanged
- _onSrcProbablyChanged(): void
mount
- mount(parentNode?: HTMLElement, id?: string): void
-
Parameters
-
Optional parentNode: HTMLElement
-
Optional id: string
Returns void
removeSong
- removeSong(song: ISong | number | string): void
-
Parameters
-
song: ISong | number | string
Returns void
setCurrentSong
- setCurrentSong(song: ISong | number | string): void
-
Parameters
-
song: ISong | number | string
Returns void
setCurrentTime
- setCurrentTime(time: number): void
setNextSong
- setNextSong(song: ISong | number | string): void
-
Parameters
-
song: ISong | number | string
Returns void
setPlaylist
-
Parameters
-
-
Optional currentSong: ISong | number | string
-
Returns void
setSpeed
- setSpeed(speedRate: number): void
setVolume
- setVolume(volume: number): void
subscribe
- subscribe(listener: function): Unsubscribe
-
Parameters
Returns Unsubscribe
unsubscribe
- unsubscribe(listener: function): void
updateSong
- updateSong(song: ISong): void