@openplayerjs/hls 3.3.0 → 3.4.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.
@@ -13,10 +13,24 @@ export declare class HlsMediaEngine extends BaseMediaEngine implements IEngine {
13
13
  private adapterListeners;
14
14
  private HlsClass;
15
15
  private hlsConfig;
16
+ private seenCueIds;
16
17
  constructor(config?: any);
18
+ onCue?: (cue: {
19
+ id: string;
20
+ scte35Out: string;
21
+ plannedDuration?: number;
22
+ startDate?: Date;
23
+ }) => void;
17
24
  getAdapter<T = Hls>(): T | undefined;
18
25
  canPlay(source: MediaSource): boolean;
19
26
  attach(ctx: MediaEngineContext): void;
27
+ /**
28
+ * Attach a separate hls.js instance to an arbitrary video element without
29
+ * touching the main engine state. Intended for ad creatives that are HLS
30
+ * streams — the caller owns the returned dispose function and must call it
31
+ * when the ad ends (or on any teardown path).
32
+ */
33
+ attachMedia(video: HTMLVideoElement, src: string): () => void;
20
34
  detach(): void;
21
35
  private onAdapterEvent;
22
36
  private unbindAdapterEvents;
@@ -1 +1 @@
1
- {"version":3,"file":"hls.d.ts","sourceRoot":"","sources":["../../src/hls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,eAAe,EAAiB,MAAM,oBAAoB,CAAC;AACpE,OAAO,GAAG,MAAM,QAAQ,CAAC;AAQzB,qBAAa,cAAe,SAAQ,eAAgB,YAAW,OAAO;IACpE,IAAI,SAAgB;IACpB,OAAO,SAAW;IAClB,YAAY,WAAoB;IAChC,QAAQ,SAAM;IAEd,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,sBAAsB,CAAuB;IACrD,OAAO,CAAC,yBAAyB,CAAuB;IACxD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,gBAAgB,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAA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MAAM,CAAC,GAAG,EAAE,kBAAkB;IAuK9B;;;;;OAKG;IACH,WAAW,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,IAAI;IAe7D,MAAM;IAWN,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,mBAAmB;CAW5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openplayerjs/hls",
3
- "version": "3.3.0",
3
+ "version": "3.4.1",
4
4
  "description": "HLS streaming engine for OpenPlayerJS, powered by hls.js",
5
5
  "author": {
6
6
  "name": "Rafael Miranda",
@@ -35,15 +35,15 @@
35
35
  ],
36
36
  "peerDependencies": {
37
37
  "hls.js": ">=1.0.0",
38
- "@openplayerjs/core": "^3.3.0"
38
+ "@openplayerjs/core": "^3.4.1"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
43
  "scripts": {
44
- "build:bundles": "rollup -c rollup.config.mjs",
44
+ "build:bundles": "rollup -c rollup.config.cjs",
45
45
  "test": "jest --passWithNoTests --config ../../jest.config.cjs",
46
46
  "release": "dotenv -o -- release-it --config .release-it.cjs",
47
- "watch": "rollup -c rollup.config.mjs --watch"
47
+ "watch": "rollup -c rollup.config.cjs --watch"
48
48
  }
49
49
  }