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:
parent
b062644f7b
commit
b0c511c18f
3 changed files with 9 additions and 6 deletions
|
@ -183,8 +183,8 @@ export default class Main {
|
||||||
l.emitter.on("resume", () => Main.playerWindow?.webContents?.send("resume"));
|
l.emitter.on("resume", () => Main.playerWindow?.webContents?.send("resume"));
|
||||||
|
|
||||||
l.emitter.on("stop", () => {
|
l.emitter.on("stop", () => {
|
||||||
Main.playerWindow.close();
|
Main.playerWindow?.close();
|
||||||
Main.playerWindow = null;
|
Main.playerWindow = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
l.emitter.on("seek", (message) => Main.playerWindow?.webContents?.send("seek", message));
|
l.emitter.on("seek", (message) => Main.playerWindow?.webContents?.send("seek", message));
|
||||||
|
|
|
@ -198,6 +198,9 @@ window.electronAPI.onPlay((_event, value: PlayMessage) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
dashPlayer.updateSettings({
|
dashPlayer.updateSettings({
|
||||||
|
// debug: {
|
||||||
|
// logLevel: dashjs.LogLevel.LOG_LEVEL_INFO
|
||||||
|
// },
|
||||||
streaming: {
|
streaming: {
|
||||||
text: {
|
text: {
|
||||||
dispatchForManualRendering: true
|
dispatchForManualRendering: true
|
||||||
|
@ -429,9 +432,9 @@ function playerCtrlStateUpdate(event: PlayerControlEvent) {
|
||||||
playerControls.setAttribute("style", "opacity: 1");
|
playerControls.setAttribute("style", "opacity: 1");
|
||||||
|
|
||||||
if (player.isCaptionsEnabled()) {
|
if (player.isCaptionsEnabled()) {
|
||||||
videoCaptions.setAttribute("style", "display: block; bottom: 150px;");
|
videoCaptions.setAttribute("style", "display: block; bottom: 160px;");
|
||||||
} else {
|
} else {
|
||||||
videoCaptions.setAttribute("style", "display: block; bottom: 150px;");
|
videoCaptions.setAttribute("style", "display: block; bottom: 160px;");
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -422,12 +422,12 @@ body {
|
||||||
/* display: none; */
|
/* display: none; */
|
||||||
position: relative;
|
position: relative;
|
||||||
/* top: -200px; */
|
/* top: -200px; */
|
||||||
bottom: 150px;
|
bottom: 160px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
font-family: InterVariable;
|
font-family: InterVariable;
|
||||||
font-size: 24px;
|
font-size: 28px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue