From 12ba510561005606d7856668b3e29982f503a3cf Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Sat, 23 Sep 2023 10:29:51 +0200 Subject: [PATCH] Fix nullability issues --- src/components/maincontroller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/maincontroller.ts b/src/components/maincontroller.ts index b41f3e42..3df3da81 100644 --- a/src/components/maincontroller.ts +++ b/src/components/maincontroller.ts @@ -228,7 +228,7 @@ window.playerManager.addEventListener( cast.framework.events.EventType.PLAYER_LOAD_COMPLETE, () => { setTextTrack( - window.playerManager.getMediaInformation().customData + window.playerManager.getMediaInformation()?.customData .subtitleStreamIndex ); } @@ -463,7 +463,7 @@ export async function changeStream( params: any = undefined ): Promise { if ( - window.playerManager.getMediaInformation().customData.canClientSeek && + window.playerManager.getMediaInformation()?.customData.canClientSeek && params == null ) { window.playerManager.seek(ticks / 10000000);