From 9b288ebd631a53c19335524a0289b3dcf8dd5234 Mon Sep 17 00:00:00 2001 From: Joris Bertomeu Date: Tue, 26 Aug 2025 10:42:15 +0200 Subject: [PATCH] Add defaultKID opt --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fa5bb6e..391e05b 100644 --- a/index.js +++ b/index.js @@ -378,7 +378,6 @@ const parseMPDStream = async (mpdUrl) => { targetProp: 'subtitles' }]; - toParse.forEach(({ rootProp, subProp, targetProp }) => { try { for (const [key, value] of Object.entries(parsedManifest?.mediaGroups?.[rootProp]?.[subProp])) { @@ -400,6 +399,7 @@ const parseMPDStream = async (mpdUrl) => { name: `${parsedManifest.playlists?.[i]?.attributes?.RESOLUTION?.width || 'N/C'}x${parsedManifest.playlists?.[i]?.attributes?.RESOLUTION?.height || 'N/C'}`, codec: parsedManifest.playlists?.[i]?.attributes?.CODECS, bandwidth: parsedManifest.playlists?.[i]?.attributes?.BANDWIDTH, + defaultKID: parsedManifest.playlists?.[i]?.contentProtection?.mp4protection?.attributes['cenc:default_KID']?.replaceAll('-', '') || null, fps: parsedManifest.playlists?.[i]?.attributes?.['FRAME-RATE'], resolution: { width: parsedManifest.playlists?.[i]?.attributes?.RESOLUTION?.width,