diff --git a/receivers/electron/src/Main.ts b/receivers/electron/src/Main.ts index 0f8586f..b94a69f 100644 --- a/receivers/electron/src/Main.ts +++ b/receivers/electron/src/Main.ts @@ -183,8 +183,8 @@ export default class Main { l.emitter.on("resume", () => Main.playerWindow?.webContents?.send("resume")); l.emitter.on("stop", () => { - Main.playerWindow.close(); - Main.playerWindow = null; + Main.playerWindow?.close(); + Main.playerWindow = null; }); l.emitter.on("seek", (message) => Main.playerWindow?.webContents?.send("seek", message)); diff --git a/receivers/electron/src/player/Renderer.ts b/receivers/electron/src/player/Renderer.ts index 2fcf1f7..2d504c6 100644 --- a/receivers/electron/src/player/Renderer.ts +++ b/receivers/electron/src/player/Renderer.ts @@ -198,6 +198,9 @@ window.electronAPI.onPlay((_event, value: PlayMessage) => { }); dashPlayer.updateSettings({ + // debug: { + // logLevel: dashjs.LogLevel.LOG_LEVEL_INFO + // }, streaming: { text: { dispatchForManualRendering: true @@ -429,9 +432,9 @@ function playerCtrlStateUpdate(event: PlayerControlEvent) { playerControls.setAttribute("style", "opacity: 1"); if (player.isCaptionsEnabled()) { - videoCaptions.setAttribute("style", "display: block; bottom: 150px;"); + videoCaptions.setAttribute("style", "display: block; bottom: 160px;"); } else { - videoCaptions.setAttribute("style", "display: block; bottom: 150px;"); + videoCaptions.setAttribute("style", "display: block; bottom: 160px;"); } break; diff --git a/receivers/electron/src/player/style.css b/receivers/electron/src/player/style.css index 7d9f2b6..d38cc0d 100644 --- a/receivers/electron/src/player/style.css +++ b/receivers/electron/src/player/style.css @@ -422,12 +422,12 @@ body { /* display: none; */ position: relative; /* top: -200px; */ - bottom: 150px; + bottom: 160px; margin: auto; text-align: center; font-family: InterVariable; - font-size: 24px; + font-size: 28px; font-style: normal; font-weight: 400;