Apr 03

HTML5 Video Background

preview

Featured CodeGrape file of the week is HTML5 Video Background by flashblue.

HTML5 video background is a simple javascript module that allows you to add video to your site’s background with a single javascript call. The script automatically chooses what video format to use and checks if your site is being seen from a mobile device and choose a lower quality video if so. It has also a flash fallback if user system doesn’t support HTML5 video tag.

Features Included:

  • Simple javascript call
  • Mobile support
  • Flash Fallback
  • Absolute position (follows site’s scroll)
  • Video aspect ratio to normal, aspect, full size or scale view
  • Maintains aspect ratio and centers video
  • Background pattern overlay option over the video
  • Control functions such as pause and play video

Control Functions:

  • Play video
  • Pause video
  • Rewind video
  • Toggle playing status
  • Toggle sound
  • Toggle hiding video

Installation:

Adding a video in background to your site is extremely easy with this application. You can install it in a few seconds. You’ll just have to define paths for the videos you want to include and their respective format and the script will do the rest for you. Your site and it’s features will remain exactly the same as the video won’t interfer with any of your code.

I'm a web developer. My social links: Twitter, Flickr, DeviantArt, Behance, Dribbble. Please, visit my CodeGrape, FlashDo portfolios for custom made items.

3 Comments on "HTML5 Video Background"

  1. html5 player says:

    Nice video,Thank you for your continuous upgrades and improvements.

  2. bryant says:

    Do you have to server the video from youtube or vimeo or does it have to reside on website? If on website, how large is too large before it buffers??

Got something to say? Go for it!