Loop
Looping is a feature that allows you to loop the current track or the whole queue.
Queue Loop
To loop the whole queue, you can use the setLoop method with the queue option.
player.setLoop("queue")Track Loop
To loop the current track, you can use the setLoop method with the track option.
player.setLoop("track")Disable Loop
To disable loop, you can use the setLoop method with the none option.
player.setLoop("none")Get
💡
You can use the loop method to toggle between the loop options.
console.log(player.loop) // "none"