Easy Tutorial
❮ Att Script Charset Canvas Textalign ❯

HTML Audio/Video DOM readyState Property

HTML Audio/Video DOM Reference Manual

Example

Get the ready state of the video:


Definition and Usage

The readyState property returns the current ready state of the audio/video.

The ready state indicates whether the audio/video is ready to play.


Browser Support

All major browsers support the readyState property.

Note: Internet Explorer 8 and earlier versions do not support this property.


Syntax

Return Value

Type Description
Number Represents the ready state of the audio/video element: 0 <br> = HAVE_NOTHING - No information regarding whether the audio/video is ready <br> 1 = HAVE_METADATA - Metadata regarding the readiness of the audio/video <br> 2 = HAVE_CURRENT_DATA - Data for the current playback position is available, but not enough data to play the next frame/millisecond <br> 3 = HAVE_FUTURE_DATA - Data for the current and at least the next frame is available <br> 4 = HAVE_ENOUGH_DATA - Enough data is available to start playing

❮ Att Script Charset Canvas Textalign ❯