Skip to content

Simple HTML5 Video

July 13, 2010

Simplicity

In case you do not want to use the HTML5 video frameworks, as we covered before. You can use the HTML5 video tag, like the simplest one shown in W3schools.  There is a better example from Mozilla.

————————————————————-

<video src=”movie.ogg” controls=”controls”>
your browser does not support the video tag
</video>

————————————————————-

The requriement is you have declare your HTML file in in HTML5 format by

————————————————————-
<!DOCTYPE html> —- Must declare HTML5 with this!
<html>
<head>
<meta charset=”utf-8″>
<title>HTML5 Video Demo</title>
<style type=”text/css” media=”screen”>@import “css/screen.css”;</style>
</head>
<body>
</body>
</html>
————————————————————-

Here are two works examples.

(1) Html5media works for all popular browsers, Chrome, Firefox, IE.

(2) Shapeshed It provides a workable solution for most of popular browsers.

(3) Double video test Not as clean as the previous two, but it offers some cool demos.

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: