@@ -891,6 +891,55 @@ <h2>IINA - Video Music player VLC alternative</h2>
891
891
< a src ="https://imgur.com/gallery/iina-pNSbEkn "> https://imgur.com/gallery/iina-pNSbEkn</ a >
892
892
< br />
893
893
< 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 ~ / .c o n f i g / mpv/
901
+
902
+ cat << EEE > ~ / .c o n f i g / 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 ~ / .c o n f i g / mpv/ script - opts
913
+ cat << EEE > ~ / .c o n f i g / mpv/ script - opts / osc . conf
914
+ visibility = always
915
+
916
+ EEE
917
+
918
+ mkdir - p ~ / .c o n f i g / mpv/ scripts /
919
+ cat << EEE > ~ / .c o n f i g / mpv/ scripts / osc - visibility - toggle . lua
920
+ -- ~ / .c o n f i g / 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 >
894
943
</ div >
895
944
</ div >
896
945
</ div >
0 commit comments