1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Subtitle tweaks

This commit is contained in:
Michael Hollister 2024-11-21 00:40:15 -06:00
parent b062644f7b
commit b0c511c18f
3 changed files with 9 additions and 6 deletions

View file

@ -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));

View file

@ -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;

View file

@ -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;