@oddin-gg/havik-player 2.9.0 → 2.9.2
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 +38 -0
- package/dist/havik-player.global.js +18 -18
- package/dist/havik-player.global.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +288 -260
- package/dist/index.js.map +1 -1
- package/docs/API.md +9 -1
- package/embed/index.html +1 -1
- package/examples/vanilla.html +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -47,6 +47,12 @@ export declare interface CatalogMatch {
|
|
|
47
47
|
matchUrn: string;
|
|
48
48
|
matchName: string;
|
|
49
49
|
status: MatchLiveStatus;
|
|
50
|
+
/**
|
|
51
|
+
* The server's status string verbatim (see {@link normaliseMatchStatus}).
|
|
52
|
+
* Equals `status` for known values; carries the new one when the server's
|
|
53
|
+
* vocabulary has grown past this SDK.
|
|
54
|
+
*/
|
|
55
|
+
statusRaw?: string;
|
|
50
56
|
datePlannedStart?: string;
|
|
51
57
|
tournamentUrn: string;
|
|
52
58
|
tournamentName: string;
|
|
@@ -275,6 +281,11 @@ export declare interface CreatePlayerOptions {
|
|
|
275
281
|
* `beacons[-dev].…`). Pass `false` to opt out entirely, or
|
|
276
282
|
* `{ endpoint }` to point at a non-conventional beacons host.
|
|
277
283
|
*
|
|
284
|
+
* If {@link baseUrl} is NOT a `feed[-dev].<domain>` host — a CDN or gateway
|
|
285
|
+
* fronting the streams API, say — nothing can be derived and beacons are
|
|
286
|
+
* disabled. That is reported, not silent: a `console.warn` naming the host
|
|
287
|
+
* (once per host) plus a non-fatal `warning` event. Supply `{ endpoint }`.
|
|
288
|
+
*
|
|
278
289
|
* Privacy: the sid is an opaque per-session id, held in memory only and
|
|
279
290
|
* never persisted. Beacons carry playback QoE numbers plus the session's
|
|
280
291
|
* environment (form factor, device model and OS version where the browser
|
|
@@ -675,6 +686,13 @@ export declare interface MatchStatus {
|
|
|
675
686
|
matchUrn: string;
|
|
676
687
|
matchName?: string;
|
|
677
688
|
status: MatchLiveStatus;
|
|
689
|
+
/**
|
|
690
|
+
* The server's status string verbatim, when it sent one. Equals `status`
|
|
691
|
+
* for values this SDK knows; carries the new value when the server's
|
|
692
|
+
* vocabulary has grown past it. Read this to act on a status the union does
|
|
693
|
+
* not name yet.
|
|
694
|
+
*/
|
|
695
|
+
statusRaw?: string;
|
|
678
696
|
datePlannedStart?: string;
|
|
679
697
|
}
|
|
680
698
|
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,12 @@ export declare interface CatalogMatch {
|
|
|
47
47
|
matchUrn: string;
|
|
48
48
|
matchName: string;
|
|
49
49
|
status: MatchLiveStatus;
|
|
50
|
+
/**
|
|
51
|
+
* The server's status string verbatim (see {@link normaliseMatchStatus}).
|
|
52
|
+
* Equals `status` for known values; carries the new one when the server's
|
|
53
|
+
* vocabulary has grown past this SDK.
|
|
54
|
+
*/
|
|
55
|
+
statusRaw?: string;
|
|
50
56
|
datePlannedStart?: string;
|
|
51
57
|
tournamentUrn: string;
|
|
52
58
|
tournamentName: string;
|
|
@@ -275,6 +281,11 @@ export declare interface CreatePlayerOptions {
|
|
|
275
281
|
* `beacons[-dev].…`). Pass `false` to opt out entirely, or
|
|
276
282
|
* `{ endpoint }` to point at a non-conventional beacons host.
|
|
277
283
|
*
|
|
284
|
+
* If {@link baseUrl} is NOT a `feed[-dev].<domain>` host — a CDN or gateway
|
|
285
|
+
* fronting the streams API, say — nothing can be derived and beacons are
|
|
286
|
+
* disabled. That is reported, not silent: a `console.warn` naming the host
|
|
287
|
+
* (once per host) plus a non-fatal `warning` event. Supply `{ endpoint }`.
|
|
288
|
+
*
|
|
278
289
|
* Privacy: the sid is an opaque per-session id, held in memory only and
|
|
279
290
|
* never persisted. Beacons carry playback QoE numbers plus the session's
|
|
280
291
|
* environment (form factor, device model and OS version where the browser
|
|
@@ -675,6 +686,13 @@ export declare interface MatchStatus {
|
|
|
675
686
|
matchUrn: string;
|
|
676
687
|
matchName?: string;
|
|
677
688
|
status: MatchLiveStatus;
|
|
689
|
+
/**
|
|
690
|
+
* The server's status string verbatim, when it sent one. Equals `status`
|
|
691
|
+
* for values this SDK knows; carries the new value when the server's
|
|
692
|
+
* vocabulary has grown past it. Read this to act on a status the union does
|
|
693
|
+
* not name yet.
|
|
694
|
+
*/
|
|
695
|
+
statusRaw?: string;
|
|
678
696
|
datePlannedStart?: string;
|
|
679
697
|
}
|
|
680
698
|
|