Skip to content

Commit a97d069

Browse files
authored
Update index.html q
1 parent 3cc8be5 commit a97d069

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

pages/mac/index.html

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,15 @@ <h2>VLC alternative -> MPV</h2>
896896

897897
Install: https://laboratory.stolendata.net/~djinn/mpv_osx/
898898
from: "macOS builds by stolendata" section from : https://mpv.io/installation/
899+
900+
to launch from cli:
901+
open -a /Applications/mpv.app ~/Desktop/Office\[create-orders\].mp4
902+
903+
debug:
904+
open -a /Applications/mpv.app --args --input-test --force-window --idle ~/Desktop/Office\[create-orders\].mp4
899905

906+
# to configure run:
900907
mkdir -p ~/.config/mpv/
901-
902908
cat <<EEE > ~/.config/mpv/mpv.conf
903909
# Use exact seeking instead of keyframe seeking
904910
hr-seek=yes
@@ -908,6 +914,12 @@ <h2>VLC alternative -> MPV</h2>
908914

909915
EEE
910916

917+
mkdir -p ~/.config/mpv
918+
cat <<EEE > ~/.config/mpv/input.conf
919+
PREV seek -3
920+
NEXT seek +3
921+
922+
EEE
911923

912924
mkdir -p ~/.config/mpv/script-opts
913925
cat <<EEE > ~/.config/mpv/script-opts/osc.conf
@@ -924,21 +936,23 @@ <h2>VLC alternative -> MPV</h2>
924936
local visible = true
925937

926938
local function toggle_osc_visibility()
927-
if visible then
928-
mp.commandv("script-message", "osc-visibility", "auto")
929-
mp.osd_message("OSC: auto-hide", 2)
930-
else
931-
mp.commandv("script-message", "osc-visibility", "always")
932-
mp.osd_message("OSC: always visible", 2)
933-
end
934-
visible = not visible
939+
if visible then
940+
mp.commandv("script-message", "osc-visibility", "auto")
941+
mp.osd_message("OSC: auto-hide", 2)
942+
else
943+
mp.commandv("script-message", "osc-visibility", "always")
944+
mp.osd_message("OSC: always visible", 2)
945+
end
946+
visible = not visible
935947
end
936948

937949
-- Bind to Ctrl+O (or change to your preferred key)
938950
mp.add_key_binding("ctrl+o", "toggle-osc-visibility", toggle_osc_visibility)
939951

940952
EEE
941953

954+
955+
942956
</script>
943957
</div>
944958
</div>

0 commit comments

Comments
 (0)