Page 1 of 1

Preinitialize HTML 5 Video Player

PostPosted: Mon May 26, 2014 9:57 pm
by Clifton
You can pre-initialize the HTML 5 video player components so that they are placed in the browser cache.

How to do it:
  • On load page for the first page of your book where the video player is required simply execute htmlVideoLoader() with ALL parameters left empty.
  • This cause the function to preload the css stylesheet file, the VideoJS JavaScript and other related files. The process of loading these files does not actually play anything, but initializes these components so future access is much quicker.
What is the benefit of preloading?
  • Preloading puts the VideoJS files in the browser cache so the next time they are needed, they can be used instantly without having to access from your server.
  • In our tests, this seems to improve the overall user experience, especially with slower Internet connections.
  • Your actual results will vary.