Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Falling back to Flash

Falling back to Flash provides you with in-depth training on Video. Taught by Steve Heffernan as par… Show More

HTML5: Video and Audio in Depth

with Steve Heffernan

Video: Falling back to Flash

Falling back to Flash provides you with in-depth training on Video. Taught by Steve Heffernan as part of the HTML5: Video and Audio in Depth
Expand all | Collapse all
  1. 1m 24s
    1. Welcome
    2. Using the exercise files
  2. 15m 18s
    1. Understanding HTML5 video and audio
      4m 46s
    2. The state of HTML5 video and audio
      4m 29s
    3. Understanding the format war
      3m 53s
    4. Configuring your server to deliver HTML5 media formats
      2m 10s
  3. 32m 36s
    1. Using the video and audio tags
      5m 34s
    2. Using multiple sources for browser compatibility
      5m 53s
    3. Preloading
      4m 16s
    4. Autoplaying
      2m 2s
    5. Looping
      5m 11s
    6. Setting a poster frame
      3m 43s
    7. Setting the video width and height
      3m 40s
    8. Displaying subtitles and captions
      2m 17s
  4. 12m 40s
    1. Falling back to Flash
      4m 4s
    2. Falling back to download links
      6m 21s
    3. Using an embed code builder
      2m 15s
  5. 22m 11s
    1. Understanding HTML5 video formats
      5m 10s
    2. Understanding HTML5 audio formats
      2m 57s
    3. Encoding MP4/H.264 video with HandBrake
      3m 13s
    4. Encoding Ogg, Theora, and WebM with Firefogg
      3m 18s
    5. Encoding audio formats with VLC
      5m 54s
    6. Automating video and audio encoding
      1m 39s
  6. 34m 59s
    1. Setting up the JavaScript
      4m 39s
    2. Creating Play and Pause buttons
      7m 52s
    3. Creating a Play Progress bar
      5m 49s
    4. Creating a Load Progress bar
      9m 29s
    5. Creating a Current Time and Duration display
      7m 10s
  7. 4m 37s
    1. Overview of known issues
    2. Autobuffer or preload?
    3. Load progress in Firefox 3.6
    4. Android 2.0 issues
      1m 5s
    5. iOS 3 issues
      1m 20s
  8. 2m 8s
    1. Flight of the Navigator
    2. ZEN Audio Player by simurai
    3. The Wilderness Downtown by Google and Arcade Fire
  9. 1m 40s
    1. Further exploration
      1m 40s

please wait ...
Falling back to Flash
Video Duration: 4m 4s 2h 7m Intermediate


Falling back to Flash provides you with in-depth training on Video. Taught by Steve Heffernan as part of the HTML5: Video and Audio in Depth

View Course Description

In this course, author Steve Heffernan contextualizes the state of HTML5 audio and video and shows how to embed media into a web page using HTML5. The course sheds light on configuring the new HTML5 audio and video tags, ensuring backwards compatibility by setting alternative playback methods, encoding the needed file formats, and building custom controls with JavaScript. Also included are tutorials on troubleshooting known issues and reviewing real-world examples of HTML5 audio and video.

Topics include:
  • Understanding the differences in media formats
  • Preloading, autoplaying, and looping in HTML5
  • Setting a video's width and height attributes
  • Displaying subtitles and captions
  • Generating embed code with an embed code builder
  • Encoding files using HandBrake, Firefogg, and VLC
  • Creating a load progress bar
  • Recognizing Android and iOS issues
Video Web

Falling back to Flash

So now we have our video and audio embedded in a page using HTML5 and we've provided multiple versions of the source so that all HTML5 browsers can play back the media. The next step is to provide a playback method for browsers and devices that don't support HTML5 media. This can be any browser below the versions you see here, which include IE version 6, 7, and 8. This could be as much as 50% of your audience, so it's going to be important to account for them. Now there are many different options for possible fallback technologies including Flash, Silverlight, QuickTime, and Java. I'm going to go with Flash because it's the most widely supported and most widely used plug-in for web video.

Still, many of these instructions will apply to other fallback options as well. So what we need is a Flash Player embed code. If you already have a Flash Player for your website, you can feel free to use that. I'm going to be using the Flash Media Playback Player, which is a free and hosted Flash video player by Adobe that's easy to configure. I'm going to go ahead and do that for our podcast. Our file is going to be hosted at And it has to be hosted online.

It can't be hosted on your computer. Because this player is hosted on another web site, you can't refer to your source as if it's on your web site. So our source is in the video assets folder and we're going to use the podcast.mp4 source, because MP4 is the version that will play in Flash. All right let's configure the rest of these options. Using HTTP Streaming? No, we're not. The width of our video is 480 pixels and the height is 300. Control Bar Position, need to be Docked or Floating.

I'm just going to leave it Docked. Autohide. That's fine. For the poster, we have a poster. I'm going to use the same URL for my source, but the file is podcast-poster.jpg. Include button overlay? That's the big play button in the middle. We'll leave that. Autoloop, no. Autoplay, no. We don't want either of those. We configure it and go down to Preview and click that and we can see it's built our Flash Player for us. (Music playing) And it works how we want it to.

So great, that was easy. Now what we can do is take this object embed code and copy it and bring it over to our code. Now if you're following along, in the exercise files, we're now in the 3-01 folder in the video.htm file. And up into this point we have had just a simple paragraph that says, Your browser does not support HTML5 video. But we can use this error for any type of fallback and so this is where we're going to put our Flash Player. We can just paste that in the place of our paragraph. So I'm going to save that and now I'm going to go view this in a version of Opera that's prior to the version of Opera that supported HTML5 video so we can actually see what happens when the browser falls back to Flash.

If you have a PC and Internet Explorer 6, 7 or 8, you can do the same thing with either of those browsers. So I'll go to Opera. I haven't reloaded the page yet so we can see what it looks like when it falls back with just the paragraph. So you can see here it says, Your browser does not support HTML5 video. Now if we reload the page, we can see it fallback to Flash, and it's worked and we can... (Music playing) Play and it works as expected. All right, so that's how you use a Flash video player as your fallback for HTML5 video.

If you're working with HTML5 audio, you will add your Flash audio player's embed code in exact same way we did for video. We don't have a Flash audio player yet. I would suggest the WordPress Audio Player, which you can see here. It's a nice compact player and it sounds like it's just for WordPress, you can actually download a standalone version that will work for any site. You can find that under the Standalone version link. If you're interested in learning more about Flash video players or Flash media playback, there's another great lynda tutorial called Publishing Video with the Flash Platform you should check out.

What we just covered should do the job of a Flash fallback for you, so you can deliver a video to all your users that don't support HTML5 video and audio.

There are currently no FAQs about HTML5: Video and Audio in Depth.






Don't show this message again
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.

Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.

Mark all as unwatched Cancel


You have completed HTML5: Video and Audio in Depth.

Return to your organization's learning portal to continue training, or close this page.


Upgrade to View Courses Offline


With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

Become a Member and Create Custom Playlists

Join today and get unlimited access to the entire library of online learning video courses—and create as many playlists as you like.

Get started

Already a member?

Log in

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

You started this assessment previously and didn’t complete it.

You can pick up where you left off, or start over.

Resume Start over

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.