V
V
Vasya the Gloomy2020-05-05 07:21:48
JavaScript
Vasya the Gloomy, 2020-05-05 07:21:48

Continuous music playback?

There is a script:

var audio = new Audio('audio_file.mp3');
audio.play();


Which plays an mp3 file 17 seconds long. How to make it so that immediately after the end of playback, playback starts again?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2020-05-05
@VasyaTheBest

audio.loop = true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question