This project hosts samples for the DAI SDK for HTML5.
- hls_js/simple - Simple example using HLS.js. Supports HLS streams in browsers that support the HLS.js javascript library.
- hls_js/advanced - Advanced example using HLS.js. Supports HLS streams in browsers that support the HLS.js javascript library.
- hls_js/dai_preroll - Demonstrates using the IMA client-side SDK to request a pre-roll ad, then the DAI SDK to play a DAI stream with mid-rolls. Supports HLS streams in browsers that support the HLS.js javascript library.
- native/simple - Simple example relying on native HLS support. Supports HLS streams in browsers with native HLS support.
- dash_js/simple - Simple example using DASH.js. For more information see the DASH.js README.
- podserving/hls_js - Simple example using HLS.js with DAI SDK and Google DAI Pod Serving. For more information see the DAI pod serving guide.
- podserving/dash_js - Simple example using DASH.js with DAI SDK and Google DAI Pod Serving. For more information see the DAI pod serving guide.
- hbbtv - Simple example for requesting and playing ad pods with HbbTV.
Your favorite text editor. An HTML5 compliant browser. A webserver on which to host the sample.
For more information, see the documentation at https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5.
For API and client library updates and news, follow our Google Ads Developers blog.
Copyright 2017 Google Inc. All Rights Reserved. You may study, modify, and use this example for any purpose. Note that this example is provided "as is", WITHOUT WARRANTY of any kind either expressed or implied.