I'm trying to use the seekToTime instance method as shown here: https://developer.apple.com/documentation/musickitjs/musickit/player/2992768-seektotime
I don't know what "time" is, is this in seconds or milliseconds? I assume it's in seconds but I figure I'd ask anyway.
I am currently using it in this way:
await musicKit.play();
await musicKit.seekToTime(10);
This technically works, although it plays first from the start and then abruptly changes to play based on the "time" provided in the seekToTime method.
I tried using the seek method before playing but that throws an error. Same thing if I "chain" these together using seekToTime first "then" play the music.
Is there a "smoother" way to start playing at a specific time without this abrupt change?