Search.../

duration

Gets the total play time of the audio track, in seconds.

Type:

numberRead Only

Was this helpful?

Get the current audio track's duration

Copy Code
1let duration = $w("#myAudioPlayer").duration // 198