Skip to content

Commit 3cc8be5

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

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

pages/mac/index.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,55 @@ <h2>IINA - Video Music player VLC alternative</h2>
891891
<a src="https://imgur.com/gallery/iina-pNSbEkn">https://imgur.com/gallery/iina-pNSbEkn</a>
892892
<br />
893893
<a href="https://i.imgur.com/PYPFdnh.png">https://i.imgur.com/SEaY38W.png</a> - <a href="https://github.com/iina/iina/wiki/FAQ#why-is-the-seeking-time-not-precise-when-pressing-arrow-keys">from</a>
894+
<h2>VLC alternative -> MPV</h2>
895+
<script type="editor" data-lang="sh">
896+
897+
Install: https://laboratory.stolendata.net/~djinn/mpv_osx/
898+
from: "macOS builds by stolendata" section from : https://mpv.io/installation/
899+
900+
mkdir -p ~/.config/mpv/
901+
902+
cat <<EEE > ~/.config/mpv/mpv.conf
903+
# Use exact seeking instead of keyframe seeking
904+
hr-seek=yes
905+
906+
# Set default seek step (arrow keys) to 5 seconds
907+
default-seek=3
908+
909+
EEE
910+
911+
912+
mkdir -p ~/.config/mpv/script-opts
913+
cat <<EEE > ~/.config/mpv/script-opts/osc.conf
914+
visibility=always
915+
916+
EEE
917+
918+
mkdir -p ~/.config/mpv/scripts/
919+
cat <<EEE > ~/.config/mpv/scripts/osc-visibility-toggle.lua
920+
-- ~/.config/mpv/scripts/osc-visibility-toggle.lua
921+
922+
local mp = require 'mp'
923+
924+
local visible = true
925+
926+
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
935+
end
936+
937+
-- Bind to Ctrl+O (or change to your preferred key)
938+
mp.add_key_binding("ctrl+o", "toggle-osc-visibility", toggle_osc_visibility)
939+
940+
EEE
941+
942+
</script>
894943
</div>
895944
</div>
896945
</div>

0 commit comments

Comments
 (0)