Skip to content

Instantly share code, notes, and snippets.

@jiromm
Created September 29, 2013 19:27
Show Gist options
  • Save jiromm/6755695 to your computer and use it in GitHub Desktop.
Save jiromm/6755695 to your computer and use it in GitHub Desktop.
Another great feature of the new HTML5 specification is definitely the video tag which allows you to easily embed video files. But unfortunately, some browsers can’t deal with embedded HTML5 video. So here is a complete code with a flash fallback for older browsers.
<video width="640" height="360" controls>
<source src="__VIDEO__.MP4" type="video/mp4" />
<source src="__VIDEO__.OGV" type="video/ogg" />
<object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF">
<param name="movie" value="__FLASH__.SWF" />
<param name="flashvars" value="controlbar=over&amp;image=__POSTER__.JPG&amp;file=__VIDEO__.MP4" />
<img src="__VIDEO__.JPG" width="640" height="360" alt="__TITLE__"
title="No video playback capabilities, please download the video below" />
</object>
</video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment