0

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.

demidov-alex
  • 142
  • 1
  • 1
  • 9
  • If you're using an HTML5 library, they usually have excellent features to help out with things like that. Youtube API also checks how much of the video is loaded. – David Hobs Jan 17 '12 at 10:10
  • @David Hobs Thanks, but in this case for me it is better to avoid using of libraries. – demidov-alex Jan 17 '12 at 10:40

1 Answers1

2

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.

Community
  • 1
  • 1
Konrad Dzwinel
  • 36,825
  • 12
  • 98
  • 105