2. Anne van Kesteren annevk at opera.com
Wed Feb 28 05:47:56 PST 2007
Hi,
Opera has some internal expiremental builds with an implementation of a <video> element. The element
exposes a simple API (for the moment) much like the Audio() object:
play()
pause()
Stop()
The idea is that it works like <object> except that it has special <video> semantics much like <img> has
image semantics. In markup you could prolly use it as follows:
<figure>
<video src=news-snippet.ogg>
...
</video>
<legend>HTML5 in BBC News</legend>
</figure>
I attached a proposal for the element and as you can see there are still some open issues. The element and
its API are of course open for debate. We're not enforcing this upon the world ;-)
Cheers,
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2007-February/009702.html
12. video as native object...why is it important?
●
keyboard accessibility built-in
●
“play nice” with rest of the page
●
Simple API for controls
13.
14. "In addition to giving video an HTML
element, we must also agree on a baseline
video format that will be universally
supported, just like the GIF, JPEG and PNG
image format are universally supported. It's
important that the video format we choose
can be supported by a wide range of devices
and that it's royalty-free (RF). RF is a well-
established principle for W3C standards."
http://people.opera.com/howcome/2007/video/
15. Ogg Theora
“free and open”, no licensing/royalties
not many tools for it, not web optimised
23. Help
●
archive.org converts and hosts creative-commons
licensed media
● vid.ly has a free conversion/ hosting service (max 1GB
source file) see vid.ly/5u4h3e
● Miro video converter is a drag and drop GUI skin on
FFMPEG
24. video media queries
<video controls>
<source src=hi-res.ogv media="(min-device-width:800px)">
<source src=lo-res.ogv>
</video>
http://dev.w3.org/html5/spec/video.html#the-source-element
25. Full-screen video
●
Currently, WebkitEnterFullscreen();
●
May 11, WebKit announced it's implementing Gecko API
https://wiki.mozilla.org/Gecko:FullScreenAPI
●
Opera likes this approach, too
28. WebM release does not support subtitles
WHATWG / W3C RFC will release guidance on subtitles and other
overlays in HTML5 <video> in the near future. WebM intends to follow
that guidance.
http://code.google.com/p/webm/issues/detail?id=11
Egg image Kacper "Kangel" Aniołek http://commons.wikimedia.org/wiki/File:Egg.jpg
32. WebVTT formatting
Supports positioning of text
Supports <b> and <i>
Colouring individual speakers
Support vertical text
Supports RTL
Supports ruby annotations
Validator: http://quuz.org/webvtt/
39. Synchronising media elements
Each media element can have a MediaController. A MediaController is an object
that coordinates the playback of multiple media elements, for instance so that a
sign-language interpreter track can be overlaid on a video track, with the two
being kept in sync....
Media elements with a MediaController are said to be slaved to their controller. The
MediaController modifies the playback rate and the playback volume of each of the
media elements slaved to it, and ensures that when any of its slaved media
elements unexpectedly stall, the others are stopped at the same time.
When a media element is slaved to a MediaController, its playback rate is fixed to
that of the other tracks in the same MediaController, and any looping is disabled.
http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#synchronising-
multiple-media-elements
http://www.w3.org/WAI/PF/HTML/wiki/Media_Multitrack_Media_API
40. How mature is all this?
Looping latency
people.opera.com/patrickl/experiments/audio/hacky-looper/
HTML5 video issues on the iPad and how to solve them
blog.millermedeiros.com/2011/03/html5-video-issues-on-the-ipad-and-how-to-solve-them/
Unsolved HTML5 video issues on iOS
http://blog.millermedeiros.com/2011/04/unsolved-html5-video-issues-on-ios/
Audio Sprites (and fixes for iOS)
remysharp.com/2010/12/23/audio-sprites/
41. “...extending the language to better support Web
applications … This puts HTML in direct competition
with other technologies intended for applications deployed
over the Web, in particular Flash and Silverlight.”
Ian Hickson, Editor of HTML5
http://lists.w3.org/Archives/Public/public-html/2009Jan/0215.html
43. DISCLAIMER:
This is my personal perspective and does not reflect the
opinion of Opera.
Or my wife, children or hamster. Or anyone else who might
be embarrassed by association with me (which is mostly
everyone, to be honest).
As this is a conference, in the land of Żubrówka, I'll probably
get drunk and try to chat you up, so let's make this
disclaimer run until Saturday, OK?
44.
45. DRM on HTML5 without changes
Henri Sivonen
lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-
July/027051.html
49. WebRTC is a free, open project that enables web browsers
with Real-Time Communications (RTC) capabilities via
simple Javascript APIs. The WebRTC components have been
optimized to best serve this purpose.
The WebRTC initiative is a project supported by Google,
Mozilla and Opera.
http://sites.google.com/site/webrtc/
http://www.whatwg.org/specs/web-apps/current-work/complete/video-conferencing-
and-peer-to-peer-communication.html
50. "We expect to see WebRTC support in Firefox, Opera, and
Chrome soon!"
http://www.webrtc.org/
56. //grab all the buttons
buttons = document.querySelectorAll('button'),
//loop through all the <button> elements, and create
corresponding
//audio elements
buildAudio = (function(){
for (var i = 0, l = buttons.length; i < l; i++) {
var key = buttons[i].textContent.toLowerCase();
//using the fancy new Audio() constructor here
document.body.appendChild(new Audio(key + '.ogg'));
};
})()
60. #thinger {position:absolute; left:40px;
top:200px;
text-align: center;
font-family: 'hixie', cursive, monospace; font-
size:3em; color:red;
transform: matrix(0.98,-0.17,-0.17,0.98,0,0);}
AEZ Segar font, made into fontface kit with
http://www.fontsquirrel.com/fontface/generator
61.
62. Thanks
Mike Taylor @miketaylr for JS help, and Patrick Lauke
@patrick_h_lauke for the Hixie voice. (What does that "H"
stand for?) to me slowly and patiently
63. All rights reserved corner
Thanks Takara Tomy for permission to use Gigapudding
video. Buy the pudding.
Thanks Jack Henderson for permission to his scary DRM
picture. Buy his book.
HTML5 nazi-killing Bruce on unicorn picture by Marina
Lawson. Buy her Dad's book.
All others by me or (I believe) public domain.