From 915690a2c88696f4efc113dbd393fe72e3b6cdbc Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 10 Aug 2022 16:41:58 +0200 Subject: [PATCH] Scripts: Open mpv window when starting audio_only streams --- .local/bin/play | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.local/bin/play b/.local/bin/play index 8858975..321cde5 100755 --- a/.local/bin/play +++ b/.local/bin/play @@ -140,10 +140,13 @@ stream() { read -r quality fi - if [ -n "$lowLatency" ]; then + if [ -z "$lowLatency" ]; then + arguments="\ + --player-args '--force-window'" + else arguments="\ --twitch-low-latency \ - --player-args '--cache=yes --demuxer-max-bytes=750k'" + --player-args '--force-window --cache=yes --demuxer-max-bytes=750k'" fi echo "Starting stream $channel @ $quality"