SlideShare une entreprise Scribd logo
1  sur  14
HTML5
driven
development

Marcin Dembowski
                        .NET Developer @ Goyello


    Dzień Informatyki w Akademii Marynarki Wojennej w Gdyni
                          26 Apr 2012
HTML 5 – what is it ?

Web Workers     HTML          Audio        Mobile




Web Sockets   Geolocation      Video       WOFF



 Indexed DB     File API    JavaScript     WebGL



   Offline       CSS        Performance   Drag Drop



  Canvas         SVG           XHR2          …
"A developer starts using an
 application from viewing its
        source code"
Detect features !
try {
  var canvas = document.createElement("canvas");
  if (canvas && canvas.getContext && canvas.getContext("2d"))
  {
    // SUPPORTED
  } else {
    // NO SUPPORT
  }                                                             HTML 5 Test

} catch (Exception e) {
    // NO SUPPORT                                                Can I use

}
                                                                Modernizr

if (Modernizr.canvas) {
    // SUPPORTED
}
Audio and Video
Plugin free playback
No single format specified and supported
No streaming media
  IE     Chrome   Firefox   Opera   Safari
  9+       4+      3.5+     10.5+    4+


  MP4     MP4      MP4      MP4      MP4

  Ogg     Ogg      Ogg       Ogg     Ogg

  WebM   WebM     WebM      WebM    WebM
Video
<video controls autoplay>
  <source src="video.mp4" type="video/mp4" />
  <source src="video.webm" type="video/webm" />
  <embed
    src="http://..."
    type="application/x-schockwave-flash"
    width="640"
    height="480">
  </embed>
</video>
Geolocation
Determine user’s location
Precision depends on hardware used
  •    GPS, WiFi

  IE       Chrome   Firefox   Opera   Safari
  9+         5+      3.5+     10.6+    5+


                                               W3C API
Where am I ?
navigator.geolocation.getCurrentPosition
(
  onPositionResponse
  [onError],
  [{ params: … }]
)

function onPositionResponse(position) {
  var latitude = position.coords.latitude;
  var longitude = position.coords.longitude;
  var altitude = position.coords.altitude;
                = … accuracy
                = … altitudeAccuracy
                = … hading
                = … speed
                = … timestamp
}
Demo
Audio, Video and Geolocation   HTML5Demo
                                   s



                                YouTube



                                 Live
Canvas
Individual pixel manupulation



  IE    Chrome   Firefox   Opera   Safari
  9+      4+       2+       9+      3.2+    Cheat Sheet



                                               Live
Scalable Vector Graphics
Scalable, objects



  IE   Chrome   Firefox   Opera   Safari
  9+     4+       2+       9+      3.2+


                                           Tutorial
Pac Man



Demo                                Irish Spring



Scalable Vector Graphics & Canvas   SVG Bullets



                                     SVG Girl



                                       Live
Demo
Windows 8 HTML 5 application


                               Live
Thanks for your attention !
Marcin Dembowski
                .NET Developer @ Goyello




marcindembowski.wordpress.com               blog.goyello.com


   twitter.com/D3M80L                       twitter.com/goyello


 Name.Surname@goyello.com                  facebook.com/goyello


                 HTML5                      kariera.goyello.com

                 driven
              development

Contenu connexe

Similaire à HTML5 Driven Development

WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWeb
George Kanellopoulos
 
HTML5 in online business: Web vs App
HTML5 in online business: Web vs AppHTML5 in online business: Web vs App
HTML5 in online business: Web vs App
Eider E Iñaki
 
East of Toronto .NET Usergroup - Put the 5 in HTML
East of Toronto .NET Usergroup - Put the 5 in HTMLEast of Toronto .NET Usergroup - Put the 5 in HTML
East of Toronto .NET Usergroup - Put the 5 in HTML
Frédéric Harper
 

Similaire à HTML5 Driven Development (20)

Html5 browser api_support
Html5 browser api_supportHtml5 browser api_support
Html5 browser api_support
 
Edge of the Web
Edge of the WebEdge of the Web
Edge of the Web
 
HTML5 multimedia - where we are, where we're going
HTML5 multimedia - where we are, where we're goingHTML5 multimedia - where we are, where we're going
HTML5 multimedia - where we are, where we're going
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWeb
 
HTML5 Quick Start
HTML5 Quick StartHTML5 Quick Start
HTML5 Quick Start
 
HTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're goingHTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're going
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Immersed in the Web
Immersed in the WebImmersed in the Web
Immersed in the Web
 
HTML5 Intoduction for Web Developers
HTML5 Intoduction for Web DevelopersHTML5 Intoduction for Web Developers
HTML5 Intoduction for Web Developers
 
An introduction to html5 by Devs
An introduction to html5 by DevsAn introduction to html5 by Devs
An introduction to html5 by Devs
 
WebXR: Introducing Mixed Reality and the Immersive Web - Peter O'Shaughnessy ...
WebXR: Introducing Mixed Reality and the Immersive Web - Peter O'Shaughnessy ...WebXR: Introducing Mixed Reality and the Immersive Web - Peter O'Shaughnessy ...
WebXR: Introducing Mixed Reality and the Immersive Web - Peter O'Shaughnessy ...
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
 
HTML5 in online business: Web vs App
HTML5 in online business: Web vs AppHTML5 in online business: Web vs App
HTML5 in online business: Web vs App
 
HTML5 in online business: Web vs App
HTML5 in online business: Web vs AppHTML5 in online business: Web vs App
HTML5 in online business: Web vs App
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
 
East of Toronto .NET Usergroup - Put the 5 in HTML
East of Toronto .NET Usergroup - Put the 5 in HTMLEast of Toronto .NET Usergroup - Put the 5 in HTML
East of Toronto .NET Usergroup - Put the 5 in HTML
 
HTML5 Bootcamp: Essential HTML, CSS, & JavaScript
HTML5 Bootcamp: Essential HTML, CSS, & JavaScriptHTML5 Bootcamp: Essential HTML, CSS, & JavaScript
HTML5 Bootcamp: Essential HTML, CSS, & JavaScript
 
HTML5 and Accessibility sitting in a tree
HTML5 and Accessibility sitting in a treeHTML5 and Accessibility sitting in a tree
HTML5 and Accessibility sitting in a tree
 

Dernier

Dernier (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

HTML5 Driven Development

  • 1. HTML5 driven development Marcin Dembowski .NET Developer @ Goyello Dzień Informatyki w Akademii Marynarki Wojennej w Gdyni 26 Apr 2012
  • 2. HTML 5 – what is it ? Web Workers HTML Audio Mobile Web Sockets Geolocation Video WOFF Indexed DB File API JavaScript WebGL Offline CSS Performance Drag Drop Canvas SVG XHR2 …
  • 3. "A developer starts using an application from viewing its source code"
  • 4. Detect features ! try { var canvas = document.createElement("canvas"); if (canvas && canvas.getContext && canvas.getContext("2d")) { // SUPPORTED } else { // NO SUPPORT } HTML 5 Test } catch (Exception e) { // NO SUPPORT Can I use } Modernizr if (Modernizr.canvas) { // SUPPORTED }
  • 5. Audio and Video Plugin free playback No single format specified and supported No streaming media IE Chrome Firefox Opera Safari 9+ 4+ 3.5+ 10.5+ 4+ MP4 MP4 MP4 MP4 MP4 Ogg Ogg Ogg Ogg Ogg WebM WebM WebM WebM WebM
  • 6. Video <video controls autoplay> <source src="video.mp4" type="video/mp4" /> <source src="video.webm" type="video/webm" /> <embed src="http://..." type="application/x-schockwave-flash" width="640" height="480"> </embed> </video>
  • 7. Geolocation Determine user’s location Precision depends on hardware used • GPS, WiFi IE Chrome Firefox Opera Safari 9+ 5+ 3.5+ 10.6+ 5+ W3C API
  • 8. Where am I ? navigator.geolocation.getCurrentPosition ( onPositionResponse [onError], [{ params: … }] ) function onPositionResponse(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; var altitude = position.coords.altitude; = … accuracy = … altitudeAccuracy = … hading = … speed = … timestamp }
  • 9. Demo Audio, Video and Geolocation HTML5Demo s YouTube Live
  • 10. Canvas Individual pixel manupulation IE Chrome Firefox Opera Safari 9+ 4+ 2+ 9+ 3.2+ Cheat Sheet Live
  • 11. Scalable Vector Graphics Scalable, objects IE Chrome Firefox Opera Safari 9+ 4+ 2+ 9+ 3.2+ Tutorial
  • 12. Pac Man Demo Irish Spring Scalable Vector Graphics & Canvas SVG Bullets SVG Girl Live
  • 13. Demo Windows 8 HTML 5 application Live
  • 14. Thanks for your attention ! Marcin Dembowski .NET Developer @ Goyello marcindembowski.wordpress.com blog.goyello.com twitter.com/D3M80L twitter.com/goyello Name.Surname@goyello.com facebook.com/goyello HTML5 kariera.goyello.com driven development