diff --git a/packages/stitcher/src/playlist.ts b/packages/stitcher/src/playlist.ts index 2fa4180b..18f44d8e 100644 --- a/packages/stitcher/src/playlist.ts +++ b/packages/stitcher/src/playlist.ts @@ -6,7 +6,7 @@ import { mergeInterstitials, } from "./interstitials"; import { encrypt } from "./lib/crypto"; -import { createUrl, joinUrl, resolveUri } from "./lib/url"; +import { createUrl, joinUrl } from "./lib/url"; import { parseMasterPlaylist, parseMediaPlaylist, diff --git a/packages/stitcher/test/__snapshots__/interstitials.test.ts.snap b/packages/stitcher/test/__snapshots__/interstitials.test.ts.snap index c4dfc017..9437b738 100644 --- a/packages/stitcher/test/__snapshots__/interstitials.test.ts.snap +++ b/packages/stitcher/test/__snapshots__/interstitials.test.ts.snap @@ -310,6 +310,7 @@ exports[`getStaticDateRanges should create dateRanges for live 1`] = ` exports[`getAssets should get assets by interstitials 1`] = ` [ { + "duration": 10, "kind": "ad", "url": "https://mock.com/interstitial1/master.m3u8", }, diff --git a/packages/stitcher/test/interstitials.test.ts b/packages/stitcher/test/interstitials.test.ts index 49e18e97..f5e74d48 100644 --- a/packages/stitcher/test/interstitials.test.ts +++ b/packages/stitcher/test/interstitials.test.ts @@ -48,6 +48,7 @@ describe("getAssets", () => { type: "asset", data: { url: "https://mock.com/interstitial1/master.m3u8", + duration: 10, kind: "ad", }, }, diff --git a/packages/stitcher/test/test-data.ts b/packages/stitcher/test/test-data.ts index 66ff458e..6e78c836 100644 --- a/packages/stitcher/test/test-data.ts +++ b/packages/stitcher/test/test-data.ts @@ -105,6 +105,7 @@ export function addFakeInterstitials(session: Session) { type: "asset", data: { url: "https://mock.com/interstitial/bumper.m3u8", + duration: 5, kind: "bumper", }, }, @@ -112,6 +113,7 @@ export function addFakeInterstitials(session: Session) { type: "asset", data: { url: "https://mock.com/interstitial/ad.m3u8", + duration: 10, kind: "ad", }, },