Audio seekingProperty

Audio 对象参考手册Audio Object

Examples

Shows whether the user is currently seeking in the audio:

var x = document.getElementById("myAudio");
document.getElementById("mySpan").innerHTML=("Seeking: " + x.seeking);

xThe output value is:

Seeking: true

Try it Yourself »

Definition and Usage

The seeking property returns whether the user is currently seeking in the audio.

Seeking refers to the user moving/jumping to a new position in the audio.

Note:This property is read-only.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the seeking property.

Note:Internet Explorer 8 or earlier browsers do not support this property.


Syntax

audioObject.seeking

Technical Details

Return value: Boolean value, true if the user is seeking. Otherwise false.


Audio 对象参考手册Audio Object Other extensions