currentTime weird output

I’m trying to get currentTime value. Code works well in Velo preview.
The problem is, that Console in Google Chrome shows not the number, but ’ onTimeUpdated ’ value.
On my site:
In first step I load .src of audio
.then search database, get previous currentTime value
.then audio.seek(fromDatabase)
.then I set Player.onPause event listener.

When I start playing, then pause, output is the same (‘onTimeUpdated’), so my theory that audio.seek messes up in currentTime searching, rather doesn’t work here.

$w("#audioPlayer1").onPause((event) => {
let ctime = $w("#audioPlayer1").currentTime;
console.log("Time taken: "+Object.values(ctime));  //value in Chrome: Time taken: onTimeUpdated
let ttime = Number(ctime);
    console.log("Time taken: "+ttime);            //Time taken: NaN
}

It’s a known bug.
@marlowe-shaeffer , it’s the same TB issue.

Dariusz, can you please share the URL for your site so I can resolve the issue?

Thanks for letting me know, @jonatandor35

currentPosition works well. Thank you for help!

Video Player currentTime gets the value of the previous item’s video even though video playback of the new item is enabled

This is a super-old thread. I’m closing it. Please post a new thread if needed.