Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Hero Video Performance

488 vues

Publié le

Vortrag beim WebPerf Meetup Köln am 6. Dezember 2018

Publié dans : Internet
  • 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, ......................................................................................................................... .........................................................................................................................
       Répondre 
    Voulez-vous vraiment ?  Oui  Non
    Votre message apparaîtra ici
  • If you want to download or read this book, Copy link or url below in the New tab ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... .........................................................................................................................
       Répondre 
    Voulez-vous vraiment ?  Oui  Non
    Votre message apparaîtra ici
  • If you want to download or read this book, Copy link or url below in the New tab ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... .........................................................................................................................
       Répondre 
    Voulez-vous vraiment ?  Oui  Non
    Votre message apparaîtra ici
  • (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 { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M }
       Répondre 
    Voulez-vous vraiment ?  Oui  Non
    Votre message apparaîtra ici
  • If you want to download or read this book, Copy link or url below in the New tab ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... .........................................................................................................................
       Répondre 
    Voulez-vous vraiment ?  Oui  Non
    Votre message apparaîtra ici

Hero Video Performance

  1. 1. HE OVIDEOPERFORMANCE Walter Ebert @wltrd mastodon.social/@walterebert
  2. 2. https://yoast.com/video-backgrounds-suck/
  3. 3. AUTOPLAYING VIDEOS <video autoplay loop muted playsinline> <source src="video.mp4" type="video/mp4"> </video>
  4. 4. AUTOPLAYING VIDEOS muted: Chrome, iOS, Android playsinline: iOS <video autoplay loop muted playsinline> <source src="video.mp4" type="video/mp4"> </video>
  5. 5. OHNE TON ffmpeg -i input.mp4 -an -c:v copy output.mp4
  6. 6. OHNE TON Geht auch mit ffmpeg -i input.mp4 -an -c:v copy output.mp4 HandBrake
  7. 7. MOOV-ATOM (MP4) ffmpeg -i input.mp4 -an -c:v copy -movflags +faststart output.mp4 https://www.adobe.com/devnet/video/articles/mp4_movie_atom.html
  8. 8. ALL THE CODECS! <video autoplay loop muted playsinline> <source src="av1.webm" type='video/webm;codecs="av1"'> <source src="av1.mp4" type='video/mp4;codecs="av1"'> <source src="h265.mp4" type='video/mp4;codecs="hvc1.1.L0.0"'> <source src="vp9.webm" type='video/webm;codecs="vp9"'> <source src="h264.mp4" type='video/mp4'> </video>
  9. 9. BEGR�NDUNGEN KEIN VIDEO ZU LADEN
  10. 10. MOBIL (IN THEORIE) <video autoplay loop muted playsinline> <source src="vid.mp4" media="(min-width: 1366px)" type="video/mp4"> <img src="screenshot.jpg" alt="Video screenshot"> </video>
  11. 11. MOBIL Problem: Video Media Query Support wurde aus Chrome + Firefox entfernt <video autoplay loop muted playsinline> <source src="vid.mp4" media="(min-width: 1366px)" type="video/mp4"> <img src="screenshot.jpg" alt="Video screenshot"> </video>
  12. 12. SVG-PLATZHALTER <style> #hero svg, #hero video, #hero img { height: auto; width: 100%; } </style> <div id="hero"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="9"/> </div>
  13. 13. SVG-PLATZHALTER <script> var hero = document.getElementById('hero') if (window.screen.width > 1365) { var video = document.createElement('video') video.src = 'video.mp4' video.setAttribute('muted', 'muted') video.setAttribute('loop', 'loop') hero.innerHTML = '' hero.appendChild(video) video.play() } else { hero.innerHTML = '<img src="screenshot.jpg" alt="screenshot">' }
  14. 14. SVG ALS POSTER-BILD <video id="hero" preload="none" loop muted playsinline poster="data:image/svg+xml,%3Csvg%20xmlns%3D%22..."> </video> <script> var video = document.getElementById('hero') if (window.screen.width > 1365) { video.setAttribute('src', 'large.mp4') video.play() } else { video.setAttribute('poster', 'screenshot.jpg') video.setAttribute('controls', 'controls') video.setAttribute('src', 'small.mp4') }
  15. 15. IST MOBIL? <script> ... navigator.userAgent.match(/Mobi/) window.screen.width > 1599 window.matchMedia('(min-width: 1366px)').matches ... </script>
  16. 16. IST SICHTBAR? <video id="hero" preload="none" loop muted playsinline src="v.mp4"/> <script> if ("hidden" in document) { var hero = document.getElementById('hero') if (!document.hidden) hero.play() document.addEventListener('visibilitychange', function () { if (document.hidden) hero.pause() else hero.play() }, false) } </script>
  17. 17. REDUCED MOTION Safari, Firefox <script> var autoplay = true if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) { autoplay = false } </script>
  18. 18. CHROME DATA SAVER <script> var autoplay = true if ("connection" in navigator && navigator.connection.saveData) { autoplay = false } </script> <?php if (empty($_SERVER['HTTP_SAVE_DATA'])) { // Load video } https://developer.chrome.com/multidevice/data-compression
  19. 19. DO NOT TRACK Relevant f�r DSGVO <script> var autoplay = true if ("doNotTrack" in navigator && navigator.doNotTrack === "1") { autoplay = false } </script> <?php if (empty($_SERVER['HTTP_DNT']) || $_SERVER['HTTP_DNT'] === 'unspecified') { // Video von Drittanbieter (YouTube, Vimeo, ...) } https://www.praetor.im/notizen/please-do-not-track/
  20. 20. MODERNES JAVASCRIPT <script type="module"> let autoplay = true </script> <script nomodule> var autoplay = false </script>
  21. 21. NETWORK INFORMATION API <script> var autoplay = false if ( "connection" in navigator && ( navigator.connection.type === 'ethernet' || navigator.connection.type === 'wifi' || navigator.connection.type === '4g' ) ) { autoplay = true } </script>
  22. 22. https://caniuse.com/#feat=netinfo
  23. 23. AUTOPLAY DEAKTIVIERT? <script> window.setTimeout(function () { var hero = document.getElementById('hero') if (hero.paused) { hero.setAttribute('controls', 'controls') hero.setAttribute('poster', 'screenshot.jpg') } }, 2000) </script> https://www.w3.org/2010/05/video/mediaevents.html
  24. 24. VIDEO ALS BILD <picture> <source srcset="video.mp4" type="video/mp4"> <source srcset="video.webp" type="image/webp"> <img src="video.gif" alt="Video">webm </picture> https://calendar.perfplanet.com/2017/animated-gif-without-the-gif/
  25. 25. FRAGEN? @wltrd mastodon.social/@walterebert slideshare.net/walterebert walterebert.de

×