Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Les défis d’une application mobile multi-périphériques avec HTML5

1,386 views

Published on

Aujourd’hui, on peut s’approcher de plus en plus des capacités des applications dites « natives » grâce à HTML5. Il y a 2 manières pour atteindre ce but. Utiliser les capacités intrinsèques d’HTML5 en faisant un site web moderne ou étendre ses capacités avec des frameworks comme PhoneGap. Mais ce n’est pas tout. Il y a ensuite de nombreux défis à relever : gestion du tactile, identité visuelle de chacune des plateformes, performances très différentes du desktop, etc. Nous verrons comme adresser certains de ces points via des exemples parfois issus du monde du jeu vidéo pour égayer cette présentation !
http://conf2013.web-5.org/speaker/david-rousset-les-defis-dune-application-mobile-multi-peripheriques-avec-html5/

Published in: Technology
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • (Unlimited)....ACCESS WEBSITE Over for All Ebooks ................ accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Les défis d’une application mobile multi-périphériques avec HTML5

  1. 1. Les défis d’une applicationmobile multi-périphériquesavec HTML5David RoussetTechnical EvangelistMicrosoft FranceWeb-5 Conference 2013 - Béziers@davroushttp://aka.ms/davrous
  2. 2. • Introduction 5’• Créer une application mobile pure HTML535’– Les spécifications disponibles– Quelques défis retenus et quelques suggestions desolutions• Plus loin avec PhoneGap et Sencha Touch5’AgendaAgenda
  3. 3. Introduction
  4. 4. HTML, CSS & JS : uneseule équipe pour toutes les plateformesen réutilisantcertaines parties sur plusieurs plateformespour accéderentièrement à la plateformePourquoi faire du HTML5 sur mobiles & tablettes ?
  5. 5. IDC - http://www.idc.com/getdoc.jsp?containerId=prUS23480612 (Madame IRMA Corp)de périphériques mobiles équipés denavigateurs modernes en 2013de développeurs Web en 2013de développeurs d’applications mobiles’intéressent à HTML5des applications mobile utiliseront du HTML5 en2015Quelques chiffres intéressants
  6. 6. :– Ergonomie et design– Concept de SPA (Single Page Application)– Gestion de l’offline possible– Gestion de la performance à des endroits différents:– Profils développeurs d’apps JS encore rares– Faire attention aux fuites mémoires, à l’optimisation ducode, aux patterns modernes, etc.Apps vs Sites
  7. 7. Créer une applicationmobile pure HTML5
  8. 8. Démo: quelque exemplesdu potentiel d’HTML5
  9. 9. Défi 1 : relever le challenge du tactile• Outre les , nous avons unproblème technique :– Touch Events créés par Apple mais non membre de laspécification W3C (patents): pour la souris et pour le tactile– Faire attention aux « gestures »
  10. 10. Un solution possible: Pointer Events• Ecrivez votre pour le tactile, lestylet et la souris• Les sites écrits uniquement pour la souris fonctionneautomatiquement• Patterns connus d’évènements DOM de la souris, avecdes extensions pour le touch
  11. 11. Démo: utilisation desPointer Events
  12. 12. Défi 2 : gérer la connexion des mobiles• Pas toujours de connexion : train, tunnel, campagne,trou noir, etc.• Vitesse de connexion inférieure et plus chère : éviterde télécharger à chaque fois
  13. 13. • Cache basé sur un pour des scenariosdéconnectés• Choisissez les : HTML, CSS, JS &vos ressources• Permet de rendre disponible vosHTTPvia une MAJ dumanifesteSolution : HTML5 application cache
  14. 14. <html manifest=“test.appcache"><head>...<link href="yourstyles.css“ rel="stylesheet"><script src="yourcode.js"></script></head><body>...<video … src=“yourvideo.mp4” …></video>...</body></html>L’usage d’app cache via le fichier de manifestMIME Type: text/cache-manifest
  15. 15. Démo: application cachehttp://aka.ms/platformer
  16. 16. Solution : IndexedDB• Stockage, et recherche de données• Stockage de paires « » à la NoSQL• Indexation en utilisant un• Pas de dépendances vis-à-vis de l’implémentation dunavigateur
  17. 17. Démo: utilisationd’IndexedDB pour stockerdes images
  18. 18. Défi 3 : faire attention aux perfs et à la mémoire• Mauvaises nouvelles :(au moins !)– RAM PC >= RAM Mobile * 4 minimum (sans parler de la RAMVidéo)– Certains limitent les perfs de la WebView• Bonnes nouvelles :– CPU ARM sont– GPU mobiles utilisés pour (CSS3, Canvas)sur mobiles sont récents et donc– Tout le monde ne limite pas les perfs ;-P
  19. 19. Idées de solutions pour les performancesà privilégier auxanimations JS (jQuery ou autre)• Ne pas abuser du pattern de Promise• Essayez d’utiliser les pour taper dansles différentes cœurs voir des shaders pour taper dansle GPU• Faites vos pour :– Niveler vers le bas– Adapter dynamiquement les perfs à la plateforme
  20. 20. Attention aux perfs de certaines WebView05001000150020002500300035004000IE10 (WP8) HTML5 APP (WP8) IPHONE 5 SAFARI IPHONE 5 HTML5 APPSUNSPIDER 0.9.1 SCORELOWER IS BETTER
  21. 21. Idées de solutions pour la mémoire• Savoir bien coder – Réutilisation d’objets, identifier les « memory leaks »– Virtualisation des données• Attention aux contenus de type image– SVG : le vectoriel c’est cool mais ça charge le DOM– Faites attention aux résolutions des images• Utiliser des profileurs
  22. 22. Démo: benchmark spritescanvas HTML5
  23. 23. 0100020003000400050006000Max sprites @30fps Max sprites @60fpsPerformance à 30 et 60 FPSPC Intel Core i5 HD4000 Core i7 avec nVidia GT330m Surface RTNokia Lumia 920 Xbox 360
  24. 24. Démo: utilisation desWebWorkers pour appliquerdes filtres aux images
  25. 25. Résultats des performances de traitement0 5000 10000 15000 20000Blur with MonothreadBlur with WorkersBlur with GPUSnapDragon (2 CPUs) - 1280x720020004000600080001000012000140001600018000Blur with Monothread Blur with Workers Blur with GPUSnap Dragon ARM vs Intel Core i7 (HD4000)Core i7 - HD4000 - 1280x720 SnapDragon (2 CPUs) - 1280x720
  26. 26. Défi 4 : les codes de Design de chaque plateforme• Une application prévue pour Windows Phone/Android/Firefox OS• Le niveau actuel de support de CSS sur mobile vouspermet de refaire vous-même l’expérience des appsnatives mais en partant de zéro…• … ou alors utilisez et leurs thèmesadaptés !
  27. 27. Références vers les guides de design• Windows 8 : http://design.windows.com• Windows Phone 8 : dev.windowsphone.com/design• iOS : iOS Human Interface Guidelines• Android 4.x : http://developer.android.com/design• Firefox OS : UI Guidelines for Firefox OSont leurs propres univers
  28. 28. Démo: jQuery Mobile
  29. 29. Comment étendre HTML5dans une app native
  30. 30. Démo: PhoneGap etSencha Touch
  31. 31. Questions ?

×