Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ALA HTML5 Video snippet, with fallback
<video controls poster="">
<source src="" type="video/mp4" />
<source src="" type="video/webm" />
<!-- fall back to flash — use the "Video For Everybody" generator for this: -->
<object type="application/x-shockwave-flash" data="" width="" height="">
<param name="movie" value="" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<param name="flashVars" value="config={'playlist':[{'url':'','autoPlay':false}]}" />
<!-- for something like a screencast, autoplay and loop are ok. for anything with sound: no. -->
<video controls autoplay loop>
<source src="" type="video/mp4">
<source src="" type="video/webm">
<!-- fall back to a simple image -->
<img src="" alt="screenshot of a comment with a cursor hovering over the new edit button">

This comment has been minimized.

Copy link
Owner Author

@murtaugh murtaugh commented Mar 6, 2013

This is just an example — ALA producers should be using the Video For Everybody Generator, and adding the figure tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment