HTML5 Media Support: video and audio tags and scriptability
WebKit keeps on trucking and has added support for the HTML 5 media tags such as <video> and <audio>.
You can add video to a page as easily as:
-
-
<video src=“sample.mov” autoplay></video>
-
That is a lot cleaner than the mess of embed/object/JavaScript wrappers that we have today. Also, there is nice scripting support so you can play/pause a video:
You can also tie into events:
-
-
myVideo.addEventListener(‘ended’, function () {
-
alert(‘video playback finished’)
-
} );
-
and programatically do your thing:
-
-
new Audio(“song.mp3″).play();
-
One key issue has always been the codec game and royalties to mpeg.
Read more on the source site
No comments yet.
feel free to leave a comment
Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs are automatically generated. Off-topic or inappropriate comments will be edited or deleted. Email addresses will never be published. Keep it PG-13 people!
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
All fields marked with " * " are required.

