apple-music integration working but unstable

This commit is contained in:
2023-11-17 09:54:04 +01:00
parent aa64d07570
commit da4924b453
4 changed files with 120 additions and 74 deletions

View File

@@ -54,6 +54,9 @@ createApp( {
},
methods: {
startTimeTracker () {
try {
clearInterval( this.timeTracker );
} catch ( err ) {}
this.timeTracker = setInterval( () => {
this.pos = ( new Date().getTime() - this.playingSong.startTime ) / 1000 + this.oldPos;
this.progressBar = ( this.pos / this.playingSong.duration ) * 1000;