@@ -896,9 +896,15 @@ <h2>VLC alternative -> MPV</h2>
896
896
897
897
Install: https://laboratory.stolendata.net/~djinn/mpv_osx/
898
898
from: "macOS builds by stolendata" section from : https://mpv.io/installation/
899
+
900
+ to launch from cli:
901
+ open - a / Applications / mpv . app ~ / D e s k t o p / Office \[create - orders \]. mp4
902
+
903
+ debug:
904
+ open - a / Applications / mpv . app -- args -- input - test -- force - window -- idle ~ / D e s k t o p / Office \[create - orders \]. mp4
899
905
906
+ # to configure run:
900
907
mkdir - p ~ / .c o n f i g / mpv/
901
-
902
908
cat << EEE > ~ / .c o n f i g / mpv/ mpv . conf
903
909
# Use exact seeking instead of keyframe seeking
904
910
hr - seek = yes
@@ -908,6 +914,12 @@ <h2>VLC alternative -> MPV</h2>
908
914
909
915
EEE
910
916
917
+ mkdir - p ~ / .c o n f i g / mpv
918
+ cat << EEE > ~ / .c o n f i g / mpv/ input . conf
919
+ PREV seek - 3
920
+ NEXT seek + 3
921
+
922
+ EEE
911
923
912
924
mkdir - p ~ / .c o n f i g / mpv/ script - opts
913
925
cat << EEE > ~ / .c o n f i g / mpv/ script - opts / osc . conf
@@ -924,21 +936,23 @@ <h2>VLC alternative -> MPV</h2>
924
936
local visible = true
925
937
926
938
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
935
947
end
936
948
937
949
-- Bind to Ctrl + O ( or change to your preferred key )
938
950
mp . add_key_binding ( "ctrl+o" , "toggle-osc-visibility" , toggle_osc_visibility )
939
951
940
952
EEE
941
953
954
+
955
+
942
956
</ script >
943
957
</ div >
944
958
</ div >
0 commit comments