VJAI
VJAI

Reputation: 32768

HTML5 Audio element's readyState

Once the HTML5 audio element has reached the readyState to 4 and after that when we seek it to a different position that's not even buffered yet. Will the readyState property can go to a lesser value like 0 or 1?

Upvotes: 2

Views: 752

Answers (1)

Raptor
Raptor

Reputation: 54212

According the documentation in MDN, there are 5 possible values of readyState. For the values you concerned (0 or 1), it will only appear when the content starts loading.

0 or HAVE_NOTHING : Have nothing yet
1 or HAVE_METADATA : Only metadata loaded

Therefore, 0 or 1 won't appear unless a new content is requested to load.

Upvotes: 1

Related Questions