Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Modern Web Fun: Das geht?!

Modern Web Fun: Das geht?!

Beim dritten Karlsruher Cross-Platform Afterwork stellt Christian Liebel unter dem Motto „Modern Web Fun“ ein paar exotischere APIs vor: Gamepad, Ambient Light, Audio Synthesis und weitere. Interessant, was moderne Browser im Jahre 2017 bereits leisten können!

Christian Liebel

May 17, 2017
Tweet

More Decks by Christian Liebel

Other Decks in Programming

Transcript

  1. Christian Liebel Thinktecture AG Microsoft MVP Visual Studio and Development

    Technologies Twitter: @chris_liebel E-Mail: [email protected] https://thinktecture.com https://christianliebel.com Gestatten? Das geht? Modern Web Fun
  2. Agenda Ambient Light WebGL Web Audio API Gamepad API Service

    Worker Payment Request Das geht? Modern Web Fun
  3. Agenda Ambient Light WebGL Web Audio API Gamepad API Service

    Worker Payment Request Das geht? Modern Web Fun
  4. W3C Working Draft Light intensity in lux Depending on the

    environment: • Change colors and contrasts • Change the exposure needed for a picture • … Ambient Light Sensor API Das geht? Modern Web Fun
  5. Agenda Ambient Light WebGL Web Audio API Gamepad API Service

    Worker Payment Request Das geht? Modern Web Fun
  6. Khronos Group Web Graphics Library OpenGL for Embedded Systems 2.0

    (OpenGL ES 2.0) Hardware accelerated 3D rendering Canvas context: webgl/experimental-webgl Blender/Unity can export to WebGL Library: THREE.js/HoloJS WebGL Das geht? Modern Web Fun
  7. Agenda Ambient Light WebGL Web Audio API Gamepad API Service

    Worker Payment Request Das geht? Modern Web Fun
  8. Related APIs • Speech Synthesis • https://developer.mozilla.org/en- US/docs/Web/API/SpeechSynthesisUtterance • Speech

    Recognition • https://www.google.com/intl/en/chrome/demos/speech.html • Microphone access via Media Capture and Streams API • https://developer.mozilla.org/en- US/docs/Web/API/MediaDevices/getUserMedia Web Audio API Das geht? Modern Web Fun
  9. Agenda Ambient Light WebGL Web Audio API Gamepad API Service

    Worker Payment Request Das geht? Modern Web Fun
  10. Working Draft Natively interact with gamepads Access axes and buttons

    via JavaScript No plugin required Chrome: User-mode driver for Xbox 360 gamepad on macOS Gamepad API Das geht? Modern Web Fun
  11. Agenda Ambient Light WebGL Web Audio API Gamepad API Service

    Worker Payment Request Das geht? Modern Web Fun
  12. Apps Tomorrow/The Web is Becoming (More) Native • Idea: No

    App-Store required any longer • Web App = App App • Feature Parity: Native Experience with Push Notifications, Offline Availability, … • Powered by Google, ready to use on Android today • Downwards compatible (Progressive Enhancement) • PWA are no technology, but a collection of features Service Worker Das geht? Modern Web Fun
  13. Connection Independence Problem: The quality of internet connection broadly variies

    (especially when travelling) Lie-Fi: Low singal strength of public WiFi/completely offline Goal: App also works offline/low signal strength …or at least as good as possible (e.g. OneNote) This means: Local data storage required Bidirectional: Data synchronization/Conflict resolution (e.g. Web Background Synchronization) Service Worker Das geht? Modern Web Fun
  14. Concept Offline Availability System Website HTML/JS Lokaler Speicher Zentraler Adapter

    Entfernter Speicher Server Internet Das geht? Modern Web Fun
  15. With Service Worker Offline Availability System Website HTML/JS Cache Storage

    Entfernter Speicher Server Internet fetch HTTP Service Worker Das geht? Modern Web Fun
  16. Re-Engageable Goal: Get users back to (re-)use the app Known

    from social networks, games, … Implementation via ServiceWorker’s PushManager Problem: Endpoint is defined by plattform provider (GCM, WNS, …) Provider and push services must be known to back-end/server component Third-party services: (free, but collecting data!) Service Worker Das geht? Modern Web Fun
  17. Agenda Ambient Light WebGL Web Audio API Gamepad API Service

    Worker Payment Request Das geht? Modern Web Fun
  18. Monetarization Payment Request API Supported by Microsoft Edge Upcoming payment

    technology for the web https://blogs.windows.com/msedgedev/20 16/12/15/payment-request-api-edge/ https://developers.google.com/web/funda mentals/discovery-and- monetization/payment-request/ Progressive Web Apps Das geht? Modern Web Fun