From c9357060b26882abc0113a412f12ea7a151fb9f2 Mon Sep 17 00:00:00 2001 From: Gary Katsevman Date: Thu, 12 Dec 2024 09:53:25 -0500 Subject: [PATCH] use in operator against the correct object --- lib/player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/player.js b/lib/player.js index 4969daaa75..50740826a5 100644 --- a/lib/player.js +++ b/lib/player.js @@ -4051,12 +4051,12 @@ shaka.Player = class extends shaka.util.FakeEventTarget { for (const keySystem in config['drm']['advanced']) { const {videoRobustness, audioRobustness} = config['drm']['advanced'][keySystem]; - if ('videoRobustness' in keySystem && + if ('videoRobustness' in config['drm']['advanced'][keySystem] && !Array.isArray(keySystem['videoRobustness'])) { keySystem['videoRobustness'] = [videoRobustness]; fixedUp = true; } - if ('audioRobustness' in keySystem && + if ('audioRobustness' in config['drm']['advanced'][keySystem] && !Array.isArray(keySystem['audioRobustness'])) { keySystem['audioRobustness'] = [audioRobustness]; fixedUp = true;