Search...
seek( )
Moves playback to the specified time, in seconds.
Syntax
function seek(time: number): Promise<void>
seek Parameters
NAME
TYPE
DESCRIPTION
time
number
The time to which to move the playback, in seconds.
Returns
Fulfilled - When the playback has moved to the specified time.
Return Type:
Promise<void>
Was this helpful?
Move playback to 1 minute and 42 seconds into the audio track
Copy Code
1$w("#myAudioPlayer").seek(102);
Move playback and log a message when done
Copy Code
1$w("#myAudioPlayer").seek(102)2 .then( () => {3 console.log("Done with seek");4 } );