23
HTML5 and Video Bas Zoetekouw [email protected]

HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

  • Upload
    vannhu

  • View
    232

  • Download
    3

Embed Size (px)

Citation preview

Page 1: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

HTML5 and Video Bas Zoetekouw [email protected]

Page 2: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

HTML5 Video Report published (jan 2011)

HTML5 Video: current status by Herman van Dompseler and Bas Zoetekouw

Download at http://www.mediamosa.org/content/html5-video-current-situation

SURFnet - We make innovation work 1

Page 3: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

SURFnet - We make innovation work 2

What is HTML5? -  HTML 2.0: 1995 -  HTML 3.2: 1997 -  HTML 4.0: 1998 -  XHTML 1.0: 2000 -  XHTML 1.1: 2001 -  … -  … -  HTML5: 201x

Page 4: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

SURFnet - We make innovation work 3

What is HTML5? HTML5 ≈ HTML + CSS + JS

-  Integrates multimedia: -  2D & 3D drawing (Canvas, WebGL) -  Audio and video playback -  Native SVG support

-  New semantic elements: -  <nav>, <footer>, <figcaption>, <section>

-  Lots of other useful features:

-  Geolocation -  Persistent offline storage (blob, SQL) -  Multithreaded JS (“web workers”) -  Web fonts

-  Extensive overview: http://slides.html5rocks.com/

Page 5: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

HTML5: possibilities Limitless possibilities! -  Webapps -  Games -  Multimedia

SURFnet - We make innovation work 4

Page 6: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

HTML5 games

SURFnet - We make innovation work 5

Page 7: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Video: before HTML5 <object  width="640"  height="385">  

   <param  name="movie"  value="http://www.youtube.com/v/qiD93UxvHRw?fs=1&amp;hl=nl_NL">  

       </param>  

   <param  name="allowFullScreen"  value="true"></param>  

   <param  name="allowscriptaccess"  value="always"></param>  

   <embed  src="http://www.youtube.com/v/qiD93UxvHRw?fs=1&amp;hl=nl_NL”  

       type="application/x–shockwave–Flash”  allowscriptaccess="always”  

       allowfullscreen="true"  width="640"  height="385">  

   </embed>  

</object>  

 

SURFnet - We make innovation work 6

Page 8: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

HTML5 and Video Support for playing video directly from the browser

<video  id="movie"  width="320"  height="240"  preload  controls>  

   <source  src="MY_MOVIE.mp4"  />  

   <source  src="MY_MOVIE.webm"  type='video/webm  />  

</video>  

-  No plugins required -  Rendering of video is responsibility of the browser -  Video fully accessible from Javascript/DOM -  Styling using CSS

SURFnet - We make innovation work 7

Page 9: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Why HTML5-based video? -  Easy & clean -  Open standard -  Cross-platform -  No more plugins!

-  Fancy stuff:

SURFnet - We make innovation work 8

Page 10: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Support for HTML5 Video

SURFnet - We make innovation work 9

Page 11: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Browsers

SURFnet - We make innovation work 10

SURFmedia visitors (jan-feb 2011)

IE6 1%

Internet Explorer 7

15%

Internet Explorer 8

49%

IE9 1%

Firefox 16%

Chrome 11%

Safari 6%

Other 1%

Non-IE browsers

34%

Page 12: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Video formats for HTML5 -  Video/audio codec support depends

on browser/platform -  Lots of politics involved

-  Platforms support own media format: -  Apple supports Quicktime in OSX/iOS -  Microsoft supports WMV in Windows

SURFnet - We make innovation work 11

Page 13: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Cross-platform Formats 3 cross-platform formats: -  H.264 -  Ogg -  WebM

SURFnet - We make innovation work 12

Page 14: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Cross-platform Formats H.264: -  MP4 container -  H.264 video (baseline/main/high) -  AAC audio

o  Modern codecs with high compression rate o  Widely supported o  Hardware implementation available o  Very good video-encoders available (x264) o  Licensing fees required

SURFnet - We make innovation work 13

Page 15: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Cross-platform Formats Ogg: -  Ogg container -  Theora (VP3) video -  Vorbis audio o  Slightly dated video codec o  Decent quality video o  No hardware implementations o  Not very widely supported o  Open format, free to use

SURFnet - We make innovation work 14

Page 16: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

New kid on the block WebM: -  VP8 video -  Vorbis audio -  Simplified Matroska container

o  Open and Free o  Slightly less advanced than H.264 o  Support growing rapidly

o  Problems: -  Ulterior motives? -  Possible patent issues

SURFnet - We make innovation work 15

Page 17: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

New kid on the block

“A key factor in the web’s success is that its core technologies such as HTML, HTTP, TCP/IP, etc. are open and freely implementable. Though video is also now core to the web experience, there is unfortunately no open and free video format that is on par with the leading commercial choices. To that end, we are excited to introduce WebM, a broadly-backed community effort to develop a world-class media format for the open web.”

SURFnet - We make innovation work 16

Page 18: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Internet Explorer Firefox Chrome Safari Opera

8 9 3.6 4.0 6+ 3+ 10.6+

Ogg/Theora/Vorbis – – ! ! ! – ! MP4/H.264/AAC/ – ! – – ! ! –

WebM/VP8/Vorbis – ! – ! ! – !

Client support

SURFnet - We make innovation work 17

No single cross-platform format -  Need H.264 and (WebM or Ogg) Mobile world even more problematic.

Page 19: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Nothing settled yet How quickly will IE9 and Firefox 4 be adopted? Lots of developments: -  H.264 will stay free for consumers -  Adobe Flash will support WebM -  Google supports WebM in Internet Explorer (!) -  Google drops support for MP4/H.264 from Chrome -  Microsoft supports MP4/H.264 in Chrome (!)

What’s next?

SURFnet - We make innovation work 18

Page 20: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Why no HTML5? -  Complexity shifted to video backend -  Need to support different/multiple formats

-  Some features not available (yet?): -  DRM -  Live recordings -  RTP streaming/multicast

SURFnet - We make innovation work 19

Page 21: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Conclusion

SURFnet - We make innovation work 20

HTML5 Video is here to stay

-  Abide your time

-  But be prepared

Page 22: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

Be prepared!

-  Get rid of proprietary formats -  Add support for Ogg or WebM

-  Possible right now: implement HTML5 video with Flash fallback

SURFnet - We make innovation work 21

Page 23: HTML5 and Video - TERENA · HTML5 Video Report published ... (Canvas, WebGL) - Audio and video playback - Native SVG support ... Internet Explorer 7 15% Internet Explorer 8 49%

SURFnet - We make innovation work 22

http://www.mediamosa.org/content/html5-­‐video-­‐current-­‐situation  

http://demo.mediamosa.org/content/html5-­‐browser-­‐support  

Bas Zoetekouw [email protected]

www.surfnet.nl

Presentation released under Creative Commons http://creativecommons.org/licenses/by/3.0/