@oddin-gg/havik-player 2.9.2 → 2.10.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/dist/havik-player.global.js +6 -3
- package/dist/havik-player.global.js.map +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/docs/API.md +12 -7
- package/embed/index.html +1 -1
- package/examples/vanilla.html +1 -1
- package/package.json +1 -1
package/docs/API.md
CHANGED
|
@@ -783,12 +783,13 @@ the instant a match starts, without polling `/v1/playback`, and to detect
|
|
|
783
783
|
end-of-stream instantly; BYO players can use it directly. `state` mirrors the
|
|
784
784
|
`/v1/playback` outcome ladder:
|
|
785
785
|
|
|
786
|
-
| `state` | meaning
|
|
787
|
-
| ---------- |
|
|
788
|
-
| `live` | serveable now, so play
|
|
789
|
-
| `upcoming` | scheduled, not serving yet
|
|
790
|
-
| `
|
|
791
|
-
| `
|
|
786
|
+
| `state` | meaning | maps to `/v1/playback` |
|
|
787
|
+
| ---------- | -------------------------------------------------------------------------------- | ------------------------------------- |
|
|
788
|
+
| `live` | serveable now, so play | `200 OK` |
|
|
789
|
+
| `upcoming` | scheduled, not serving yet | `425 Too Early` (with `liveStartsAt`) |
|
|
790
|
+
| `pending` | kickoff passed, stream being packaged — `live` follows within seconds to minutes | `425 Too Early` (no `liveStartsAt`) |
|
|
791
|
+
| `ended` | was live; media stopped | `503` |
|
|
792
|
+
| `gone` | ended past the catchup window | `410 Gone` |
|
|
792
793
|
|
|
793
794
|
An `ended` event also carries a `reason`: `'interrupted'` (the match is still
|
|
794
795
|
running; only its stream dropped, so a BYO player should show "reconnecting"
|
|
@@ -1145,8 +1146,12 @@ interface CatalogMatch {
|
|
|
1145
1146
|
|
|
1146
1147
|
#### `MatchStatus`, `MatchLiveStatus`
|
|
1147
1148
|
|
|
1149
|
+
`pending` is "kickoff has passed, the stream is being packaged": not playable
|
|
1150
|
+
yet, `live` expected within seconds to minutes. Unknown values still collapse to
|
|
1151
|
+
`upcoming` with the verbatim value in `statusRaw`.
|
|
1152
|
+
|
|
1148
1153
|
```ts
|
|
1149
|
-
type MatchLiveStatus = 'upcoming' | 'live' | 'ended';
|
|
1154
|
+
type MatchLiveStatus = 'upcoming' | 'pending' | 'live' | 'ended';
|
|
1150
1155
|
interface MatchStatus {
|
|
1151
1156
|
matchUrn: string;
|
|
1152
1157
|
matchName?: string;
|
package/embed/index.html
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
beacons endpoint can be derived and QoE analytics is silently off.
|
|
29
29
|
`analytics` is honoured from the injected config only, never the query.
|
|
30
30
|
-->
|
|
31
|
-
<script src="https://cdn.jsdelivr.net/npm/@oddin-gg/havik-player@2.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@oddin-gg/havik-player@2.10.0/dist/havik-player.global.js" integrity="sha384-8JeA3Kgt3Hq/rl4dUJlndmtAcw1oQPn17zgjHRxbvfe57Q1/0x1/lwp27RimmlIy" crossorigin="anonymous"></script>
|
|
32
32
|
<script>
|
|
33
33
|
HavikPlayer.bootEmbed();
|
|
34
34
|
</script>
|
package/examples/vanilla.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
shipped in each npm release is pinned to that release with Subresource
|
|
13
13
|
Integrity, injected at publish time (scripts/inject-sri.mjs). In
|
|
14
14
|
production, always use a pinned + SRI'd tag like the released copy. -->
|
|
15
|
-
<script src="https://cdn.jsdelivr.net/npm/@oddin-gg/havik-player@2.
|
|
15
|
+
<script src="https://cdn.jsdelivr.net/npm/@oddin-gg/havik-player@2.10.0/dist/havik-player.global.js" integrity="sha384-8JeA3Kgt3Hq/rl4dUJlndmtAcw1oQPn17zgjHRxbvfe57Q1/0x1/lwp27RimmlIy" crossorigin="anonymous"></script>
|
|
16
16
|
<script>
|
|
17
17
|
(async () => {
|
|
18
18
|
const player = await HavikPlayer.createPlayer({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oddin-gg/havik-player",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
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,
|