Preinitialize HTML 5 Video Player

Workarounds and usability notes.

Preinitialize HTML 5 Video Player

Postby Clifton » Mon May 26, 2014 9:57 pm

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.
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 6 guests

cron