mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 04:54:23 +00:00
apple-music integration working but unstable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user