@oddin-gg/havik-player 1.6.0 → 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/dist/index.d.cts
CHANGED
|
@@ -480,7 +480,7 @@ export declare function mountEmbed(opts: MountEmbedOptions): EmbedHandle;
|
|
|
480
480
|
export declare interface MountEmbedOptions {
|
|
481
481
|
/** Element to mount the iframe into. */
|
|
482
482
|
container: HTMLElement;
|
|
483
|
-
/** URL of the hosted embed page, e.g. https://player.oddin.gg/embed
|
|
483
|
+
/** URL of the hosted embed page, e.g. `https://player-dev.oddin-video.gg/embed/`. */
|
|
484
484
|
src: string;
|
|
485
485
|
baseUrl: string;
|
|
486
486
|
matchUrn: string;
|
|
@@ -647,7 +647,12 @@ export declare interface QualityLevel {
|
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
export declare interface ResolveOptions {
|
|
650
|
-
/**
|
|
650
|
+
/**
|
|
651
|
+
* Base URL of the havik-streams API — `https://feed.oddin-video.gg`
|
|
652
|
+
* (production) or `https://feed-dev.oddin-video.gg` (integration). Prefer
|
|
653
|
+
* resolving it from the endpoint directory at runtime over hard-coding it;
|
|
654
|
+
* see Service URL discovery in the API reference.
|
|
655
|
+
*/
|
|
651
656
|
baseUrl: string;
|
|
652
657
|
matchUrn: string;
|
|
653
658
|
credential: CredentialSource;
|
package/dist/index.d.ts
CHANGED
|
@@ -480,7 +480,7 @@ export declare function mountEmbed(opts: MountEmbedOptions): EmbedHandle;
|
|
|
480
480
|
export declare interface MountEmbedOptions {
|
|
481
481
|
/** Element to mount the iframe into. */
|
|
482
482
|
container: HTMLElement;
|
|
483
|
-
/** URL of the hosted embed page, e.g. https://player.oddin.gg/embed
|
|
483
|
+
/** URL of the hosted embed page, e.g. `https://player-dev.oddin-video.gg/embed/`. */
|
|
484
484
|
src: string;
|
|
485
485
|
baseUrl: string;
|
|
486
486
|
matchUrn: string;
|
|
@@ -647,7 +647,12 @@ export declare interface QualityLevel {
|
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
export declare interface ResolveOptions {
|
|
650
|
-
/**
|
|
650
|
+
/**
|
|
651
|
+
* Base URL of the havik-streams API — `https://feed.oddin-video.gg`
|
|
652
|
+
* (production) or `https://feed-dev.oddin-video.gg` (integration). Prefer
|
|
653
|
+
* resolving it from the endpoint directory at runtime over hard-coding it;
|
|
654
|
+
* see Service URL discovery in the API reference.
|
|
655
|
+
*/
|
|
651
656
|
baseUrl: string;
|
|
652
657
|
matchUrn: string;
|
|
653
658
|
credential: CredentialSource;
|
package/dist/index.js
CHANGED
|
@@ -796,11 +796,11 @@ var Te = class {
|
|
|
796
796
|
};
|
|
797
797
|
let r = n.decryptdata?.uri;
|
|
798
798
|
if (r?.startsWith("skd://")) {
|
|
799
|
-
let e = r.slice(6).split(":")[0].toLowerCase()
|
|
800
|
-
for (let
|
|
799
|
+
let e = r.slice(6).split(":")[0].toLowerCase(), t = e ? `skd://${e}` : r, n = /* @__PURE__ */ new ArrayBuffer(t.length * 2), i = new DataView(n);
|
|
800
|
+
for (let e = 0; e < t.length; e++) i.setUint16(e * 2, t.charCodeAt(e), !0);
|
|
801
801
|
return {
|
|
802
802
|
initDataType: "skd",
|
|
803
|
-
initData:
|
|
803
|
+
initData: n
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
return {
|