demidov-alex
demidov-alex

Reputation: 142

How to play video only when it had downloaded completely?

I am making web page that will sequentially plays video from server on big screen. I set "auto" value for preload attribute of video tag. I want the video begins to play only when video had downloaded completely. Is there any ways to do such thing?

In the events summary of media elements from html5 standart I didn't find neccessary event.

Upvotes: 0

Views: 649

Answers (1)

Konrad Dzwinel
Konrad Dzwinel

Reputation: 37913

According to this you can use progress event. Here and here are some examples how to use it. Every time when progress event is fired check if video is loaded and if so, play it.

Upvotes: 2

Related Questions