Repeat increment function
This commit is contained in:
parent
de50c1f263
commit
ff9e9f90df
1 changed files with 16 additions and 0 deletions
|
@ -4515,6 +4515,22 @@ const app = new Vue({
|
|||
this.cfg.audio.muted = false;
|
||||
}
|
||||
},
|
||||
repeatIncrement() {
|
||||
switch (app.mk.repeatMode) {
|
||||
default:
|
||||
case MusicKit.PlayerRepeatMode.none:
|
||||
app.mk.repeatMode = MusicKit.PlayerRepeatMode.all;
|
||||
break;
|
||||
|
||||
case MusicKit.PlayerRepeatMode.all:
|
||||
app.mk.repeatMode = MusicKit.PlayerRepeatMode.one;
|
||||
break;
|
||||
|
||||
case MusicKit.PlayerRepeatMode.one:
|
||||
app.mk.repeatMode = MusicKit.PlayerRepeatMode.none;
|
||||
break;
|
||||
}
|
||||
},
|
||||
async apiCall(url, callback) {
|
||||
const xmlHttp = new XMLHttpRequest();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue