@clappr/hlsjs-playback 1.9.12 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,6 +22,17 @@ or as an npm package:
22
22
 
23
23
  `yarn add @clappr/hlsjs-playback`
24
24
 
25
+ ### Which artifact to load
26
+
27
+ | Scenario | Artifact |
28
+ |---|---|
29
+ | `<script>` / CDN alongside `@clappr/core` (or `@clappr/player`) | `dist/hlsjs-playback.min.js` |
30
+ | Bundler that should resolve `hls.js` itself | `dist/hlsjs-playback.external.js` (or `.external.min.js`) |
31
+ | Bundler / ESM entry (embeds `hls.js`, leaves `@clappr/core` external) | `dist/hlsjs-playback.esm.js` (package `module` field) |
32
+ | Default CommonJS / UMD entry (embeds `hls.js`) | `dist/hlsjs-playback.js` (package `main` field) |
33
+
34
+ **Migration note (2.0+):** `hlsjs-playback.min.js` no longer embeds `@clappr/core`. Load core (or player) first so a global `Clappr` exists. Use `.external` builds when you supply your own `hls.js`.
35
+
25
36
  Then just add `HlsjsPlayback` into the list of plugins of your player instance:
26
37
 
27
38
  ```javascript
@@ -36719,7 +36719,7 @@ class HlsjsPlayback extends HTML5Video {
36719
36719
  }
36720
36720
  get supportedVersion() {
36721
36721
  return {
36722
- min: "0.14.7"
36722
+ min: "0.14.8"
36723
36723
  };
36724
36724
  }
36725
36725
  get levels() {
@@ -37425,3 +37425,4 @@ HlsjsPlayback.canPlay = function (resource, mimeType) {
37425
37425
  };
37426
37426
 
37427
37427
  export { HlsjsPlayback as default };
37428
+ //# sourceMappingURL=hlsjs-playback.esm.js.map