Create an HTML5 Video Gallery with jQuery and Dreamweaver
- Preparing the graphics
- Adding and linking thumbnail buttons
- Designing the layout
- Including video information in the thumbnail links
- Styling the thumbnails with CSS rules
- Creating a DIV container to hold the video player code
- Setting up click events for the thumbnails
- Incorporating the FancyBox lightbox plug-in
Previewing the project across browsers and devices
So when I roll over each of these thumbnails I get at a rollover state. When I click on a thumbnail it uploads a video up in a light box. And then each browser is going to use its own built-in HTML5 support to show the video controls as well. So clicking outside will make the video go away. Click on the next video. (Music playing) Close that as well. So this is how the user experience looks in Safari. In Firefox, instead of using MPEG4, which is the video format that all of the browsers and devices are going to use except Firefox, we are going to be using the Ogg Theora or OGV video file format.
So again, I can come in here and clicking gets the same user experience. The controls are going to look a little different based on how Firefox's controls are going to be rendered as opposed to other browsers. (Music playing) These videos work great. Let's come into Chrome. Now Chrome doesn't allow auto play by default, so we click on the video it loads up but I do have to come down here and click Play in the Chrome browser to see these rendering. Now if your browser doesn't support HTML5 video we also have a Flash fallback that we are going to be programming in.
So we have some Flash video players and a video skin that you can put into your project. So for browsers like IE 7 and 8 that don't have HTML5 video support, what's actually going to happen is it's going to use Flash instead of HTML5. So if I were to right-click on this, I would see that we are actually using Flash here instead of HTML5 video. Now the options I was referring to before have to do with how the different mobile devices are going to handle video. If we look at this running on an iPad, you will notice that the iPad user's experience is very similar to that of the computer screens.
I can tap on the video and then they will each jump into their respective video players and play the video. The second option has to do with bypassing the overlay altogether since neither platform supports playing the video inside of the overlay. So the second option is to just change the link. Instead of having the link invoke the overlay, we are going to have the link change the URL to go directly to the actual video file itself. Now on the iPhone platform, this means that it opens another window in Mobile Safari requiring us to hit the Back button.
There are currently no FAQs about Create an HTML5 Video Gallery with jQuery and Dreamweaver.
PHP with MySQL Essential Training3,907,848 Views
Muse Essential Training1,405,772 Views
Foundations of Programming: Fundamentals6,728,971 Views
After Effects CC Essential Training2,533,490 Views
HTML Essential Training3,250,120 Views
Deke's Techniques1,435,609 Views