diff --git a/README.md b/README.md index 2f8008c3136..c005dcd3a33 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,46 @@ Find the commit on [https://github.com/video-dev/hls.js/blob/deployments/README. ``` +#### Alternative setup + +Note that the example code above will check for hls.js support _first_ and then +fallback to check if the browser natively supports HLS. If you want to check for +native browser support first, and then fallback to Hls.js you will want to swap +those conditionals. + +The order of these checks depends on if you want to use hls.js whenever possible +see [this comment](https://github.com/video-dev/hls.js/pull/2954#issuecomment-670021358) to understand some of the tradeoffs. + +```html + + + + + +``` + ## Video Control Video is controlled through HTML ```