-
Notifications
You must be signed in to change notification settings - Fork 0
Methods
Farshad Javan edited this page Dec 17, 2019
·
2 revisions
dAudio
has a very small amount of standard and useful methods:
Starts playing from the beginning or resumes the playback if you have paused before.
audio.play();
Pauses the playback at the current time if it is playing.
audio.pause();
Stops the sound and resets the current time to the beginning. Same action if the sound is playing or paused.
audio.stop();
Toggles between play()
and pause()
methods.
audio.playPause();