@clappr/hlsjs-playback 1.9.13 → 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 +11 -0
- package/dist/hlsjs-playback.esm.js +1 -0
- package/dist/hlsjs-playback.esm.js.map +1 -0
- package/dist/hlsjs-playback.external.js +1 -0
- package/dist/hlsjs-playback.external.js.map +1 -0
- package/dist/hlsjs-playback.external.min.js +1 -1
- package/dist/hlsjs-playback.external.min.js.map +1 -1
- package/dist/hlsjs-playback.js +1 -0
- package/dist/hlsjs-playback.js.map +1 -0
- package/dist/hlsjs-playback.min.js +1 -1
- package/dist/hlsjs-playback.min.js.map +1 -1
- package/package.json +2 -2
- package/src/dist.smoke.test.js +115 -0
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
|
|
@@ -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
|