Search.../

seek( )

Moves playback to the specified time, in seconds.

Syntax

function seek(): Promise<void>

seek Parameters

This function does not take any parameters.

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

Code Example

Copy Code
1$w("#myAudioPlayer").seek(102);
Move playback and log a message when done

Code Example

Copy Code
1$w("#myAudioPlayer").seek(102)
2 .then( () => {
3 console.log("Done with seek");
4 } );