@oddin-gg/havik-player 1.5.1 → 1.6.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 +6 -6
- package/dist/havik-player.global.js +1 -1
- package/dist/havik-player.global.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/examples/vanilla.html +4 -2
- package/package.json +1 -1
package/examples/vanilla.html
CHANGED
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
(async () => {
|
|
15
15
|
const player = await HavikPlayer.createPlayer({
|
|
16
16
|
video: document.getElementById('player'),
|
|
17
|
-
baseUrl: 'https://
|
|
17
|
+
baseUrl: 'https://feed-dev.oddin-video.gg',
|
|
18
18
|
matchUrn: 'od:match:1234',
|
|
19
|
-
|
|
19
|
+
// Key and baseUrl must be the same environment: pk_test_ with feed-dev,
|
|
20
|
+
// pk_live_ with feed. Scope its AllowedOrigins to this page's origin.
|
|
21
|
+
credential: { apiKey: 'pk_test_…' },
|
|
20
22
|
autoplay: true,
|
|
21
23
|
muted: true,
|
|
22
24
|
waitForLive: true, // arm now, auto-play the instant the match goes live
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oddin-gg/havik-player",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Havik HTML5 player SDK — LL-HLS + DRM playback for Oddin live streams (managed, bring-your-own-player, and iframe-embed modes).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|