Question on preload and poster

7 views
Skip to first unread message

Chi Lin

unread,
Feb 5, 2016, 10:37:04 PM2/5/16
to html5...@googlegroups.com
I am trying to use Html5Media on my pages.  Right now, I am using Jplayer, , two players are used at same time on two monitors.   Some of the videos are fairly high definition, so it will feel a bit lagging when play and loading next video,  I feel it still uses too much CPU resources, so I plan to give Html5Media a try, but before that, I need help on a few questions.

My plan is to do the following, and would like to know how:
  1. Using JS to load the next video need to be played (the url is already generated in a variable).
  2. Set a poster before loading the video
  3. Define a time for the poster to be displayed while the video is loaded (say display the poster for 5 secs, and then play the video which is already preloaded while displaying the poster)
  4. Sometimes, the volume of the player need to be adjusted by JS while the video is playing
  5. Repeat the process.

Any help on defining the time of the poster playing time (or any sample) will be greatly appreciated.

Thanks

CL

Chi Lin

unread,
Feb 6, 2016, 8:08:16 PM2/6/16
to html5...@googlegroups.com

Dave Hall

unread,
Feb 8, 2016, 4:24:34 AM2/8/16
to html5...@googlegroups.com
html5media is a very basic compatibility shim, so not really suitable for complex scripting of video tags. However, if you only need to target recent browsers, and are happy to transcode your video into two formats, you can use the native browser player without html5media at all!

If you follow the instructions here to create two transcoded versions of your video, then the <video> element will work without any shims:


You can then use the HTML5 MediaElement API to script up your playlist solution:


--
You received this message because you are subscribed to the Google Groups "html5media" group.
To unsubscribe from this group and stop receiving emails from it, send an email to html5media+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages