From c6624299c45225ec3971e8119979d7421c56f70d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 14 Feb 2025 16:56:57 +0100 Subject: 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. --- yt/src/watch/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) 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(()) })?; -- cgit 1.4.1