Skip to content

Commit

Permalink
Fix nullability issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Sep 23, 2023
1 parent 5fe01df commit 12ba510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/maincontroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ window.playerManager.addEventListener(
cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,
() => {
setTextTrack(
window.playerManager.getMediaInformation().customData
window.playerManager.getMediaInformation()?.customData
.subtitleStreamIndex
);
}
Expand Down Expand Up @@ -463,7 +463,7 @@ export async function changeStream(
params: any = undefined
): Promise<void> {
if (
window.playerManager.getMediaInformation().customData.canClientSeek &&
window.playerManager.getMediaInformation()?.customData.canClientSeek &&
params == null
) {
window.playerManager.seek(ticks / 10000000);
Expand Down

0 comments on commit 12ba510

Please sign in to comment.