From f05b90ce1a677aba8019adc19989ee42c974f581 Mon Sep 17 00:00:00 2001 From: gnattu Date: Sun, 22 Sep 2024 13:16:52 +0800 Subject: [PATCH] Fix unnecessary optional chaining Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- src/plugins/htmlVideoPlayer/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 8452074907..0697b65e56 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -1588,7 +1588,7 @@ export class HtmlVideoPlayer { const player = this; sessionPromise.then((s) => { - if (!s.TranscodingInfo || s.TranscodingInfo?.IsVideoDirect) { + if (!s.TranscodingInfo || s.TranscodingInfo.IsVideoDirect) { // restore recorded delivery method if any mediaStreamTextTracks.forEach((t) => { t.DeliveryMethod = t.realDeliveryMethod ?? t.DeliveryMethod;