setLoop

fun setLoop(mode: LoopMode)

Sets what happens at the end of the media.

LoopMode.All repeats the open queue, wrapping from the last item to the first. With a queue of one, or plain open-ed media, it repeats the current item exactly like LoopMode.One, which is what a whole queue of one means.