I am using apple MusicKit to song streaming based on action per seconds at specific seconds i try to stop the playing music and start the next on on the queue. i alwyas get this error
i am sure that i stopped and then try to play and seekToTime.
this is my next function :
async function next(time) {
const music = MusicKit.getInstance();
await music.skipToNextItem();
await music.play();
await music.seekToTime(time);
return;
}
this is it's call in condition :
music.stop().then(function () {
next(100)
});`