@openplayerjs/hls 3.0.0-beta.0 → 3.0.0-beta.1
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
|
@@ -49,8 +49,9 @@ const player = new Core(video, {
|
|
|
49
49
|
Load the bundles in order — core first, then the HLS add-on:
|
|
50
50
|
|
|
51
51
|
```html
|
|
52
|
-
<
|
|
53
|
-
<script src="https://cdn.jsdelivr.net/npm/@
|
|
52
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@openplayerjs/player@latest/dist/openplayer.css" />
|
|
53
|
+
<script src="https://cdn.jsdelivr.net/npm/@openplayerjs/player@latest/dist/openplayer.js"></script>
|
|
54
|
+
<script src="https://cdn.jsdelivr.net/npm/@openplayerjs/hls@latest/dist/openplayer-hls.js"></script>
|
|
54
55
|
<script>
|
|
55
56
|
const player = new OpenPlayerJS('player');
|
|
56
57
|
player.init();
|
|
@@ -135,7 +136,7 @@ if (hls) {
|
|
|
135
136
|
}
|
|
136
137
|
```
|
|
137
138
|
|
|
138
|
-
You can then use `extendControls` + `addControl` from `@openplayer/
|
|
139
|
+
You can then use `extendControls` + `addControl` from `@openplayer/player` to build a custom quality selector button.
|
|
139
140
|
|
|
140
141
|
---
|
|
141
142
|
|
|
@@ -150,7 +151,7 @@ You can then use `extendControls` + `addControl` from `@openplayer/ui` to build
|
|
|
150
151
|
|
|
151
152
|
## Code samples
|
|
152
153
|
|
|
153
|
-
|
|
154
|
+
CodePen Collection: [https://codepen.io/collection/pjwRvL](https://codepen.io/collection/pjwRvL)
|
|
154
155
|
|
|
155
156
|
---
|
|
156
157
|
|