Monday, May 30, 2011

Very basic to embed WebM in HTML5

Very basic to embed WebM in HTML5 is something like it:

<video src="source url of WebM"
controls>
</video>

example:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 WebM Video</title>
</head>
<body>
<h1>Hello HTML5: WebM Video</h1>
<video src="http://people.opera.com/shwetankd/webm/sunflower.webm"
controls>
<p>Your browser doesn't support WebM format.</p>
</video>

</body>
</html>


WebM in HTML5

No comments:

Post a Comment