@oddin-gg/havik-player 1.6.0 → 1.6.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/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
- /** Base URL of the havik-streams API, e.g. https://streams.oddin.gg. */
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
- /** Base URL of the havik-streams API, e.g. https://streams.oddin.gg. */
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,10 @@ 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() || r, t = /* @__PURE__ */ new ArrayBuffer(e.length * 2), n = new DataView(t);
800
- for (let t = 0; t < e.length; t++) n.setUint16(t * 2, e.charCodeAt(t), !0);
799
+ let e = r.slice(6).split(":")[0].toLowerCase(), t = e ? `skd://${e}` : r;
801
800
  return {
802
801
  initDataType: "skd",
803
- initData: t
802
+ initData: new TextEncoder().encode(t).buffer
804
803
  };
805
804
  }
806
805
  return {