2 Commits
2.1.1 ... 2.2

Author SHA1 Message Date
e7bb991df7 Adds video support! 2025-02-23 18:17:27 -08:00
92ab7d572c remove erroneous file 2025-02-23 18:08:19 -08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -1 +0,0 @@
[]

View File

@@ -33,10 +33,12 @@ export class MediaPlayer {
constructor() {
const socketFilename = Math.random().toString(36).substring(2, 10);
const socketPath = `/tmp/mpv-${socketFilename}`;
const enableVideo = process.env.ENABLE_VIDEO || false;
console.log("Starting player process");
console.log("Starting player process (video: " + (enableVideo ? "enabled" : "disabled") + ")");
this.playerProcess = spawn("mpv", [
"--no-video",
"--video=" + (enableVideo ? "auto" : "no"),
"--fullscreen",
"--no-terminal",
"--idle=yes",
"--input-ipc-server=" + socketPath