about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-14 16:56:57 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-14 16:56:57 +0100
commitc6624299c45225ec3971e8119979d7421c56f70d (patch)
tree2476eeac44dde875540045ebd85c766b6d4b87ce
parentfix(yt/select/selection_file/help.str): Disable vim line wrapping (diff)
downloadyt-c6624299c45225ec3971e8119979d7421c56f70d.zip
fix(yt/watch): Always open a `mpv` window
Otherwise, controlling playback of things like podcast or audio dramas
becomes impossible because they do not have a video stream.
-rw-r--r--yt/src/watch/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/yt/src/watch/mod.rs b/yt/src/watch/mod.rs
index 6e7c372..9b2cbef 100644
--- a/yt/src/watch/mod.rs
+++ b/yt/src/watch/mod.rs
@@ -42,6 +42,10 @@ pub async fn watch(app: &App) -> Result<()> {
 
         // Don't automatically advance to the next video (or exit the player)
         mpv.set_option("keep-open", "always")?;
+
+        // Always display an window, even for non-video playback.
+        // As mpv does not have cli access, no window means no control and no user feedback.
+        mpv.set_option("force-window", "yes")?;
         Ok(())
     })?;