misc
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
- Manual translated to simplified Chinese (hooke007)
|
- Manual translated to simplified Chinese (hooke007)
|
||||||
- Showing the playlist selects the currently played file/stream in the playlist.
|
- Showing the playlist selects the currently played file/stream in the playlist.
|
||||||
|
- Properties are shown in the command palette instead of the text editor
|
||||||
|
making it very easy to find a property and show/print its value.
|
||||||
|
|
||||||
|
|
||||||
5.4.9.1 Beta (2021-06-23)
|
5.4.9.1 Beta (2021-06-23)
|
||||||
|
|||||||
@@ -210,9 +210,8 @@ Adds files to the playlist, requires [--process-instance=single](#--process-inst
|
|||||||
|
|
||||||
#### --command=\<input command\>
|
#### --command=\<input command\>
|
||||||
|
|
||||||
Sends a input command. Useful to control mpv.net from the command line, for instance
|
Sends a input command to a running mpv.net instance via command line, for instance
|
||||||
to create global hotkeys with AutoHotkey, for that [process-instance=single](#--process-instancevalue)
|
to create global hotkeys with AutoHotkey. Requires [process-instance=single](#--process-instancevalue).
|
||||||
must be used. Spaces have to be escaped with quotes and quotes have to be escaped with double quotes.
|
|
||||||
|
|
||||||
### Audio
|
### Audio
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace mpvnet
|
|||||||
|
|
||||||
public static bool RememberWindowPosition { get; set; }
|
public static bool RememberWindowPosition { get; set; }
|
||||||
public static bool DebugMode { get; set; }
|
public static bool DebugMode { get; set; }
|
||||||
public static bool IsStartedFromTerminal { get; } = Environment.GetEnvironmentVariable("_started_from_console") == "yes";
|
public static bool IsTerminalAttached { get; } = Environment.GetEnvironmentVariable("_started_from_console") == "yes";
|
||||||
public static bool RememberVolume { get; set; } = true;
|
public static bool RememberVolume { get; set; } = true;
|
||||||
public static bool AutoLoadFolder { get; set; } = true;
|
public static bool AutoLoadFolder { get; set; } = true;
|
||||||
public static bool Queue { get; set; }
|
public static bool Queue { get; set; }
|
||||||
@@ -126,7 +126,7 @@ namespace mpvnet
|
|||||||
|
|
||||||
public static void ShowException(object obj)
|
public static void ShowException(object obj)
|
||||||
{
|
{
|
||||||
if (IsStartedFromTerminal)
|
if (IsTerminalAttached)
|
||||||
Terminal.WriteError(obj.ToString());
|
Terminal.WriteError(obj.ToString());
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -139,9 +139,23 @@ namespace mpvnet
|
|||||||
|
|
||||||
public static void InvokeOnMainThread(Action action) => MainForm.Instance.BeginInvoke(action);
|
public static void InvokeOnMainThread(Action action) => MainForm.Instance.BeginInvoke(action);
|
||||||
|
|
||||||
|
public static void ShowInfo(string title, string msg = null)
|
||||||
|
{
|
||||||
|
if (IsTerminalAttached)
|
||||||
|
{
|
||||||
|
if (title != null)
|
||||||
|
Terminal.Write(title);
|
||||||
|
|
||||||
|
if (msg != null)
|
||||||
|
Terminal.Write(msg);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
InvokeOnMainThread(() => Msg.ShowInfo(title, msg));
|
||||||
|
}
|
||||||
|
|
||||||
public static void ShowError(string title, string msg = null)
|
public static void ShowError(string title, string msg = null)
|
||||||
{
|
{
|
||||||
if (IsStartedFromTerminal)
|
if (IsTerminalAttached)
|
||||||
{
|
{
|
||||||
if (title != null)
|
if (title != null)
|
||||||
Terminal.WriteError(title);
|
Terminal.WriteError(title);
|
||||||
|
|||||||
@@ -327,12 +327,6 @@ namespace mpvnet
|
|||||||
ShowTextWithEditor("command-list", PowerShell.InvokeAndReturnString(code, "json", json));
|
ShowTextWithEditor("command-list", PowerShell.InvokeAndReturnString(code, "json", json));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ShowProperties()
|
|
||||||
{
|
|
||||||
var props = Core.GetPropertyString("property-list").Split(',').OrderBy(prop => prop);
|
|
||||||
ShowTextWithEditor("property-list", string.Join(BR, props));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void ShowTextWithEditor(string name, string text)
|
public static void ShowTextWithEditor(string name, string text)
|
||||||
{
|
{
|
||||||
string file = Path.Combine(Path.GetTempPath(), name + ".txt");
|
string file = Path.Combine(Path.GetTempPath(), name + ".txt");
|
||||||
@@ -425,5 +419,37 @@ namespace mpvnet
|
|||||||
|
|
||||||
MainForm.Instance.ShowCommandPalette();
|
MainForm.Instance.ShowCommandPalette();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void ShowProperties() => App.InvokeOnMainThread(ShowPropertiesInternal);
|
||||||
|
|
||||||
|
public static void ShowPropertiesInternal()
|
||||||
|
{
|
||||||
|
var props = Core.GetPropertyString("property-list").Split(',').OrderBy(prop => prop);
|
||||||
|
List<CommandPaletteItem> items = new List<CommandPaletteItem>();
|
||||||
|
|
||||||
|
foreach (string i in props)
|
||||||
|
{
|
||||||
|
string prop = i;
|
||||||
|
|
||||||
|
CommandPaletteItem item = new CommandPaletteItem()
|
||||||
|
{
|
||||||
|
Text = prop,
|
||||||
|
Action = () =>
|
||||||
|
{
|
||||||
|
string propValue = Core.GetPropertyString(prop);
|
||||||
|
|
||||||
|
if (propValue.ContainsEx("${"))
|
||||||
|
propValue += BR2 + Core.Expand(propValue);
|
||||||
|
|
||||||
|
App.ShowInfo(prop + ": " +propValue);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
items.Add(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
CommandPalette.Instance.SetItems(items);
|
||||||
|
MainForm.Instance.ShowCommandPalette();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ namespace mpvnet
|
|||||||
|
|
||||||
App.RunTask(() => EventLoop());
|
App.RunTask(() => EventLoop());
|
||||||
|
|
||||||
if (App.IsStartedFromTerminal)
|
if (App.IsTerminalAttached)
|
||||||
{
|
{
|
||||||
SetPropertyString("terminal", "yes");
|
SetPropertyString("terminal", "yes");
|
||||||
SetPropertyString("input-terminal", "yes");
|
SetPropertyString("input-terminal", "yes");
|
||||||
@@ -1061,7 +1061,7 @@ namespace mpvnet
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
if (!App.IsStartedFromTerminal)
|
if (!App.IsTerminalAttached)
|
||||||
Msg.ShowException(e);
|
Msg.ShowException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1290,7 +1290,7 @@ namespace mpvnet
|
|||||||
gx.DrawImage(bmp2, rect);
|
gx.DrawImage(bmp2, rect);
|
||||||
BitmapData bd = bmp.LockBits(rect, ImageLockMode.ReadOnly, PixelFormat.Format32bppPArgb);
|
BitmapData bd = bmp.LockBits(rect, ImageLockMode.ReadOnly, PixelFormat.Format32bppPArgb);
|
||||||
int x = Convert.ToInt32((cr.Width - len) / (december ? 1.95 : 2));
|
int x = Convert.ToInt32((cr.Width - len) / (december ? 1.95 : 2));
|
||||||
int y = Convert.ToInt32(((cr.Height - len) / 2.0) * (december ? 0.85 : 0.9));
|
int y = Convert.ToInt32((cr.Height - len) / 2.0 * (december ? 0.85 : 0.9));
|
||||||
CommandV("overlay-add", "0", $"{x}", $"{y}", "&" + bd.Scan0.ToInt64().ToString(), "0", "bgra", bd.Width.ToString(), bd.Height.ToString(), bd.Stride.ToString());
|
CommandV("overlay-add", "0", $"{x}", $"{y}", "&" + bd.Scan0.ToInt64().ToString(), "0", "bgra", bd.Width.ToString(), bd.Height.ToString(), bd.Stride.ToString());
|
||||||
bmp.UnlockBits(bd);
|
bmp.UnlockBits(bd);
|
||||||
IsLogoVisible = true;
|
IsLogoVisible = true;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace mpvnet
|
|||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
|
|
||||||
if (App.IsStartedFromTerminal)
|
if (App.IsTerminalAttached)
|
||||||
Native.AttachConsole(-1 /*ATTACH_PARENT_PROCESS*/);
|
Native.AttachConsole(-1 /*ATTACH_PARENT_PROCESS*/);
|
||||||
|
|
||||||
string[] args = Environment.GetCommandLineArgs().Skip(1).ToArray();
|
string[] args = Environment.GetCommandLineArgs().Skip(1).ToArray();
|
||||||
@@ -75,7 +75,7 @@ namespace mpvnet
|
|||||||
Native.SendMessage(proc.MainWindowHandle, 0x004A /*WM_COPYDATA*/, IntPtr.Zero, ref data);
|
Native.SendMessage(proc.MainWindowHandle, 0x004A /*WM_COPYDATA*/, IntPtr.Zero, ref data);
|
||||||
mutex.Dispose();
|
mutex.Dispose();
|
||||||
|
|
||||||
if (App.IsStartedFromTerminal)
|
if (App.IsTerminalAttached)
|
||||||
Native.FreeConsole();
|
Native.FreeConsole();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -91,7 +91,7 @@ namespace mpvnet
|
|||||||
|
|
||||||
Application.Run(new MainForm());
|
Application.Run(new MainForm());
|
||||||
|
|
||||||
if (App.IsStartedFromTerminal)
|
if (App.IsTerminalAttached)
|
||||||
Native.FreeConsole();
|
Native.FreeConsole();
|
||||||
|
|
||||||
mutex.Dispose();
|
mutex.Dispose();
|
||||||
|
|||||||
@@ -1,211 +1,208 @@
|
|||||||
|
|
||||||
# This file defines the key and mouse bindings and the context menu of mpv.net.
|
# This file defines the key and mouse bindings and also the context menu of mpv.net.
|
||||||
|
|
||||||
# A input and config editor can be found in the context menu under 'Settings'.
|
# A input and config editor can be found in the context menu under 'Settings'.
|
||||||
|
|
||||||
# The mpv.conf defaults of mpv.net contain: 'input-default-bindings = no'
|
# The mpv.conf defaults of mpv.net contain: 'input-default-bindings = no'
|
||||||
# which disables the input defaults of mpv.
|
# which disables the input defaults of mpv.
|
||||||
|
|
||||||
# Every line in this file begins with a space character to make search easier,
|
# The input test mode can be started via command line: --input-test
|
||||||
# if you want to know if 'o' has already a binding you can search for ' o '.
|
|
||||||
|
|
||||||
# input test mode:
|
# The input key list can be printed with --input-keylist or
|
||||||
# mpvnet --input-test
|
# shown from the context menu under: View > Show Keys
|
||||||
|
|
||||||
# The input key list can be found in the context menu under: View > Show Keys
|
# mpv.net input.conf defaults:
|
||||||
|
# https://github.com/stax76/mpv.net/blob/master/src/Resources/input.conf.txt
|
||||||
|
|
||||||
# mpv.net input.conf defaults:
|
# mpv input.conf defaults:
|
||||||
# https://github.com/stax76/mpv.net/blob/master/src/Resources/input.conf.txt
|
# https://github.com/mpv-player/mpv/blob/master/etc/input.conf
|
||||||
|
|
||||||
# mpv input.conf defaults:
|
# mpv input commands:
|
||||||
# https://github.com/mpv-player/mpv/blob/master/etc/input.conf
|
# https://mpv.io/manual/master/#list-of-input-commands
|
||||||
|
|
||||||
# mpv input commands:
|
# mpv input options:
|
||||||
# https://mpv.io/manual/master/#list-of-input-commands
|
# https://mpv.io/manual/master/#input
|
||||||
|
|
||||||
# mpv input options:
|
o script-message mpv.net open-files #menu: Open > Open Files...
|
||||||
# https://mpv.io/manual/master/#input
|
u script-message mpv.net open-url #menu: Open > Open URL or file path from clipboard
|
||||||
|
_ script-message mpv.net open-optical-media #menu: Open > Open DVD/Blu-ray Drive/Folder...
|
||||||
|
_ ignore #menu: Open > -
|
||||||
|
Alt+a script-message mpv.net load-audio #menu: Open > Load external audio files...
|
||||||
|
Alt+s script-message mpv.net load-sub #menu: Open > Load external subtitle files...
|
||||||
|
_ ignore #menu: Open > -
|
||||||
|
_ script-message mpv.net open-files append #menu: Open > Add files to playlist...
|
||||||
|
_ ignore #menu: Open > -
|
||||||
|
_ ignore #menu: Open > Recent
|
||||||
|
|
||||||
o script-message mpv.net open-files #menu: Open > Open Files...
|
_ ignore #menu: -
|
||||||
u script-message mpv.net open-url #menu: Open > Open URL or file path from clipboard
|
Space cycle pause #menu: Play/Pause
|
||||||
_ script-message mpv.net open-optical-media #menu: Open > Open DVD/Blu-ray Drive/Folder...
|
Ctrl+s stop #menu: Stop
|
||||||
_ ignore #menu: Open > -
|
_ ignore #menu: -
|
||||||
Alt+a script-message mpv.net load-audio #menu: Open > Load external audio files...
|
Enter cycle fullscreen #menu: Toggle Fullscreen
|
||||||
Alt+s script-message mpv.net load-sub #menu: Open > Load external subtitle files...
|
f cycle fullscreen
|
||||||
_ ignore #menu: Open > -
|
|
||||||
_ script-message mpv.net open-files append #menu: Open > Add files to playlist...
|
|
||||||
_ ignore #menu: Open > -
|
|
||||||
_ ignore #menu: Open > Recent
|
|
||||||
|
|
||||||
_ ignore #menu: -
|
F11 playlist-prev; set pause no #menu: Navigate > Previous File
|
||||||
Space cycle pause #menu: Play/Pause
|
F12 playlist-next; set pause no #menu: Navigate > Next File
|
||||||
Ctrl+s stop #menu: Stop
|
_ ignore #menu: Navigate > -
|
||||||
_ ignore #menu: -
|
Home script-message mpv.net playlist-first #menu: Navigate > First File
|
||||||
Enter cycle fullscreen #menu: Toggle Fullscreen
|
End script-message mpv.net playlist-last #menu: Navigate > Last File
|
||||||
f cycle fullscreen
|
_ ignore #menu: Navigate > -
|
||||||
|
PGUP add chapter 1 #menu: Navigate > Next Chapter
|
||||||
|
PGDWN add chapter -1 #menu: Navigate > Previous Chapter
|
||||||
|
_ ignore #menu: Navigate > -
|
||||||
|
. frame-step #menu: Navigate > Jump Next Frame
|
||||||
|
, frame-back-step #menu: Navigate > Jump Previous Frame
|
||||||
|
_ ignore #menu: Navigate > -
|
||||||
|
Right seek 5 #menu: Navigate > Jump 5 sec forward
|
||||||
|
Left seek -5 #menu: Navigate > Jump 5 sec backward
|
||||||
|
_ ignore #menu: Navigate > -
|
||||||
|
Up seek 30 #menu: Navigate > Jump 30 sec forward
|
||||||
|
Down seek -30 #menu: Navigate > Jump 30 sec backward
|
||||||
|
_ ignore #menu: Navigate > -
|
||||||
|
Ctrl+Right seek 300 #menu: Navigate > Jump 5 min forward
|
||||||
|
Ctrl+Left seek -300 #menu: Navigate > Jump 5 min backward
|
||||||
|
_ ignore #menu: Navigate > -
|
||||||
|
_ ignore #menu: Navigate > Titles
|
||||||
|
_ ignore #menu: Navigate > Chapters
|
||||||
|
|
||||||
F11 playlist-prev; set pause no #menu: Navigate > Previous File
|
Ctrl++ add video-zoom 0.1 #menu: Pan & Scan > Increase Size
|
||||||
F12 playlist-next; set pause no #menu: Navigate > Next File
|
Ctrl+- add video-zoom -0.1 #menu: Pan & Scan > Decrease Size
|
||||||
_ ignore #menu: Navigate > -
|
_ ignore #menu: Pan & Scan > -
|
||||||
Home script-message mpv.net playlist-first #menu: Navigate > First File
|
Ctrl+KP4 add video-pan-x -0.01 #menu: Pan & Scan > Move Left
|
||||||
End script-message mpv.net playlist-last #menu: Navigate > Last File
|
Ctrl+KP6 add video-pan-x 0.01 #menu: Pan & Scan > Move Right
|
||||||
_ ignore #menu: Navigate > -
|
_ ignore #menu: Pan & Scan > -
|
||||||
PGUP add chapter 1 #menu: Navigate > Next Chapter
|
Ctrl+KP8 add video-pan-y -0.01 #menu: Pan & Scan > Move Up
|
||||||
PGDWN add chapter -1 #menu: Navigate > Previous Chapter
|
Ctrl+KP2 add video-pan-y 0.01 #menu: Pan & Scan > Move Down
|
||||||
_ ignore #menu: Navigate > -
|
_ ignore #menu: Pan & Scan > -
|
||||||
. frame-step #menu: Navigate > Jump Next Frame
|
w add panscan -0.1 #menu: Pan & Scan > Decrease Height
|
||||||
, frame-back-step #menu: Navigate > Jump Previous Frame
|
W add panscan 0.1 #menu: Pan & Scan > Increase Height
|
||||||
_ ignore #menu: Navigate > -
|
_ ignore #menu: Pan & Scan > -
|
||||||
Right seek 5 #menu: Navigate > Jump 5 sec forward
|
Ctrl+BS set video-zoom 0; set video-pan-x 0; set video-pan-y 0 #menu: Pan & Scan > Reset
|
||||||
Left seek -5 #menu: Navigate > Jump 5 sec backward
|
|
||||||
_ ignore #menu: Navigate > -
|
|
||||||
Up seek 30 #menu: Navigate > Jump 30 sec forward
|
|
||||||
Down seek -30 #menu: Navigate > Jump 30 sec backward
|
|
||||||
_ ignore #menu: Navigate > -
|
|
||||||
Ctrl+Right seek 300 #menu: Navigate > Jump 5 min forward
|
|
||||||
Ctrl+Left seek -300 #menu: Navigate > Jump 5 min backward
|
|
||||||
_ ignore #menu: Navigate > -
|
|
||||||
_ ignore #menu: Navigate > Titles
|
|
||||||
_ ignore #menu: Navigate > Chapters
|
|
||||||
|
|
||||||
Ctrl++ add video-zoom 0.1 #menu: Pan & Scan > Increase Size
|
Ctrl+1 add contrast -1 #menu: Video > Decrease Contrast
|
||||||
Ctrl+- add video-zoom -0.1 #menu: Pan & Scan > Decrease Size
|
Ctrl+2 add contrast 1 #menu: Video > Increase Contrast
|
||||||
_ ignore #menu: Pan & Scan > -
|
_ ignore #menu: Video > -
|
||||||
Ctrl+KP4 add video-pan-x -0.01 #menu: Pan & Scan > Move Left
|
Ctrl+3 add brightness -1 #menu: Video > Decrease Brightness
|
||||||
Ctrl+KP6 add video-pan-x 0.01 #menu: Pan & Scan > Move Right
|
Ctrl+4 add brightness 1 #menu: Video > Increase Brightness
|
||||||
_ ignore #menu: Pan & Scan > -
|
_ ignore #menu: Video > -
|
||||||
Ctrl+KP8 add video-pan-y -0.01 #menu: Pan & Scan > Move Up
|
Ctrl+5 add gamma -1 #menu: Video > Decrease Gamma
|
||||||
Ctrl+KP2 add video-pan-y 0.01 #menu: Pan & Scan > Move Down
|
Ctrl+6 add gamma 1 #menu: Video > Increase Gamma
|
||||||
_ ignore #menu: Pan & Scan > -
|
_ ignore #menu: Video > -
|
||||||
w add panscan -0.1 #menu: Pan & Scan > Decrease Height
|
Ctrl+7 add saturation -1 #menu: Video > Decrease Saturation
|
||||||
W add panscan 0.1 #menu: Pan & Scan > Increase Height
|
Ctrl+8 add saturation 1 #menu: Video > Increase Saturation
|
||||||
_ ignore #menu: Pan & Scan > -
|
_ ignore #menu: Video > -
|
||||||
Ctrl+BS set video-zoom 0; set video-pan-x 0; set video-pan-y 0 #menu: Pan & Scan > Reset
|
s async screenshot #menu: Video > Take Screenshot
|
||||||
|
d cycle deinterlace #menu: Video > Toggle Deinterlace
|
||||||
|
a cycle-values video-aspect 16:9 4:3 2.35:1 -1 #menu: Video > Cycle Aspect Ratio
|
||||||
|
|
||||||
Ctrl+1 add contrast -1 #menu: Video > Decrease Contrast
|
KP7 script-message mpv.net cycle-audio #menu: Audio > Cycle/Next
|
||||||
Ctrl+2 add contrast 1 #menu: Video > Increase Contrast
|
_ ignore #menu: Audio > -
|
||||||
_ ignore #menu: Video > -
|
KP6 add audio-delay 0.1 #menu: Audio > Delay +0.1
|
||||||
Ctrl+3 add brightness -1 #menu: Video > Decrease Brightness
|
KP9 add audio-delay -0.1 #menu: Audio > Delay -0.1
|
||||||
Ctrl+4 add brightness 1 #menu: Video > Increase Brightness
|
|
||||||
_ ignore #menu: Video > -
|
|
||||||
Ctrl+5 add gamma -1 #menu: Video > Decrease Gamma
|
|
||||||
Ctrl+6 add gamma 1 #menu: Video > Increase Gamma
|
|
||||||
_ ignore #menu: Video > -
|
|
||||||
Ctrl+7 add saturation -1 #menu: Video > Decrease Saturation
|
|
||||||
Ctrl+8 add saturation 1 #menu: Video > Increase Saturation
|
|
||||||
_ ignore #menu: Video > -
|
|
||||||
s async screenshot #menu: Video > Take Screenshot
|
|
||||||
d cycle deinterlace #menu: Video > Toggle Deinterlace
|
|
||||||
a cycle-values video-aspect 16:9 4:3 2.35:1 -1 #menu: Video > Cycle Aspect Ratio
|
|
||||||
|
|
||||||
KP7 script-message mpv.net cycle-audio #menu: Audio > Cycle/Next
|
KP8 cycle sub #menu: Subtitle > Cycle/Next
|
||||||
_ ignore #menu: Audio > -
|
v cycle sub-visibility #menu: Subtitle > Toggle Visibility
|
||||||
KP6 add audio-delay 0.1 #menu: Audio > Delay +0.1
|
_ ignore #menu: Subtitle > -
|
||||||
KP9 add audio-delay -0.1 #menu: Audio > Delay -0.1
|
z add sub-delay -0.1 #menu: Subtitle > Delay -0.1
|
||||||
|
Z add sub-delay 0.1 #menu: Subtitle > Delay +0.1
|
||||||
|
_ ignore #menu: Subtitle > -
|
||||||
|
r add sub-pos -1 #menu: Subtitle > Move Up
|
||||||
|
R add sub-pos +1 #menu: Subtitle > Move Down
|
||||||
|
_ ignore #menu: Subtitle > -
|
||||||
|
F add sub-scale -0.1 #menu: Subtitle > Decrease Subtitle Font Size
|
||||||
|
G add sub-scale 0.1 #menu: Subtitle > Increase Subtitle Font Size
|
||||||
|
|
||||||
KP8 cycle sub #menu: Subtitle > Cycle/Next
|
_ ignore #menu: Track
|
||||||
v cycle sub-visibility #menu: Subtitle > Toggle Visibility
|
|
||||||
_ ignore #menu: Subtitle > -
|
|
||||||
z add sub-delay -0.1 #menu: Subtitle > Delay -0.1
|
|
||||||
Z add sub-delay 0.1 #menu: Subtitle > Delay +0.1
|
|
||||||
_ ignore #menu: Subtitle > -
|
|
||||||
r add sub-pos -1 #menu: Subtitle > Move Up
|
|
||||||
R add sub-pos +1 #menu: Subtitle > Move Down
|
|
||||||
_ ignore #menu: Subtitle > -
|
|
||||||
F add sub-scale -0.1 #menu: Subtitle > Decrease Subtitle Font Size
|
|
||||||
G add sub-scale 0.1 #menu: Subtitle > Increase Subtitle Font Size
|
|
||||||
|
|
||||||
_ ignore #menu: Track
|
+ add volume 2 #menu: Volume > Up
|
||||||
|
- add volume -2 #menu: Volume > Down
|
||||||
|
0 add volume 2 #menu: Volume > Up
|
||||||
|
9 add volume -2 #menu: Volume > Down
|
||||||
|
_ ignore #menu: Volume > -
|
||||||
|
m cycle mute #menu: Volume > Mute
|
||||||
|
|
||||||
+ add volume 2 #menu: Volume > Up
|
[ multiply speed 1/1.1 #menu: Speed > -10%
|
||||||
- add volume -2 #menu: Volume > Down
|
] multiply speed 1.1 #menu: Speed > +10%
|
||||||
0 add volume 2 #menu: Volume > Up
|
_ ignore #menu: Speed > -
|
||||||
9 add volume -2 #menu: Volume > Down
|
{ multiply speed 0.5 #menu: Speed > Half
|
||||||
_ ignore #menu: Volume > -
|
} multiply speed 2.0 #menu: Speed > Double
|
||||||
m cycle mute #menu: Volume > Mute
|
_ ignore #menu: Speed > -
|
||||||
|
BS set speed 1 #menu: Speed > Reset
|
||||||
|
|
||||||
[ multiply speed 1/1.1 #menu: Speed > -10%
|
Ctrl+t set ontop yes #menu: View > On Top > Enable
|
||||||
] multiply speed 1.1 #menu: Speed > +10%
|
Ctrl+T set ontop no #menu: View > On Top > Disable
|
||||||
_ ignore #menu: Speed > -
|
Alt++ script-message mpv.net scale-window 1.2 #menu: View > Zoom > Enlarge
|
||||||
{ multiply speed 0.5 #menu: Speed > Half
|
Alt+- script-message mpv.net scale-window 0.8 #menu: View > Zoom > Shrink
|
||||||
} multiply speed 2.0 #menu: Speed > Double
|
_ ignore #menu: View > Zoom > -
|
||||||
_ ignore #menu: Speed > -
|
Alt+0 script-message mpv.net window-scale 0.5 #menu: View > Zoom > 50 %
|
||||||
BS set speed 1 #menu: Speed > Reset
|
Alt+1 script-message mpv.net window-scale 1.0 #menu: View > Zoom > 100 %
|
||||||
|
Alt+2 script-message mpv.net window-scale 2.0 #menu: View > Zoom > 200 %
|
||||||
|
Alt+3 script-message mpv.net window-scale 3.0 #menu: View > Zoom > 300 %
|
||||||
|
b cycle border #menu: View > Toggle Border
|
||||||
|
i script-message mpv.net show-info #menu: View > File/Stream Info
|
||||||
|
Del script-binding osc/visibility #menu: View > Toggle OSC Visibility
|
||||||
|
Ctrl+r cycle-values video-rotate 90 180 270 0 #menu: View > Rotate Video
|
||||||
|
T script-binding stats/display-stats-toggle #menu: View > Toggle Statistics
|
||||||
|
t script-binding stats/display-stats #menu: View > Show Statistics
|
||||||
|
_ script-message mpv.net show-audio-devices #menu: View > Show Audio Devices
|
||||||
|
Shift+c script-message mpv.net show-commands #menu: View > Show Commands
|
||||||
|
` script-binding console/enable #menu: View > Show Console
|
||||||
|
_ script-message mpv.net show-decoders #menu: View > Show Decoders
|
||||||
|
_ script-message mpv.net show-demuxers #menu: View > Show Demuxers
|
||||||
|
_ script-message mpv.net show-keys #menu: View > Show Keys
|
||||||
|
F8 script-message mpv.net show-playlist #menu: View > Show Playlist
|
||||||
|
Ctrl+p script-message mpv.net show-profiles #menu: View > Show Profiles
|
||||||
|
p show-progress #menu: View > Show Progress
|
||||||
|
P script-message mpv.net show-properties #menu: View > Show Properties
|
||||||
|
_ script-message mpv.net show-protocols #menu: View > Show Protocols
|
||||||
|
F9 show-text ${track-list} 5000 #menu: View > Show Tracks
|
||||||
|
Ctrl+m script-message mpv.net show-media-info #menu: View > Show Media Info
|
||||||
|
|
||||||
Ctrl+t set ontop yes #menu: View > On Top > Enable
|
c script-message mpv.net show-conf-editor #menu: Settings > Show Config Editor
|
||||||
Ctrl+T set ontop no #menu: View > On Top > Disable
|
Ctrl+i script-message mpv.net show-input-editor #menu: Settings > Show Input Editor
|
||||||
Alt++ script-message mpv.net scale-window 1.2 #menu: View > Zoom > Enlarge
|
Ctrl+f script-message mpv.net open-conf-folder #menu: Settings > Open Config Folder
|
||||||
Alt+- script-message mpv.net scale-window 0.8 #menu: View > Zoom > Shrink
|
|
||||||
_ ignore #menu: View > Zoom > -
|
|
||||||
Alt+0 script-message mpv.net window-scale 0.5 #menu: View > Zoom > 50 %
|
|
||||||
Alt+1 script-message mpv.net window-scale 1.0 #menu: View > Zoom > 100 %
|
|
||||||
Alt+2 script-message mpv.net window-scale 2.0 #menu: View > Zoom > 200 %
|
|
||||||
Alt+3 script-message mpv.net window-scale 3.0 #menu: View > Zoom > 300 %
|
|
||||||
b cycle border #menu: View > Toggle Border
|
|
||||||
i script-message mpv.net show-info #menu: View > File/Stream Info
|
|
||||||
Del script-binding osc/visibility #menu: View > Toggle OSC Visibility
|
|
||||||
Ctrl+r cycle-values video-rotate 90 180 270 0 #menu: View > Rotate Video
|
|
||||||
T script-binding stats/display-stats-toggle #menu: View > Toggle Statistics
|
|
||||||
t script-binding stats/display-stats #menu: View > Show Statistics
|
|
||||||
_ script-message mpv.net show-audio-devices #menu: View > Show Audio Devices
|
|
||||||
Shift+c script-message mpv.net show-commands #menu: View > Show Commands
|
|
||||||
` script-binding console/enable #menu: View > Show Console
|
|
||||||
_ script-message mpv.net show-decoders #menu: View > Show Decoders
|
|
||||||
_ script-message mpv.net show-demuxers #menu: View > Show Demuxers
|
|
||||||
_ script-message mpv.net show-keys #menu: View > Show Keys
|
|
||||||
F8 script-message mpv.net show-playlist #menu: View > Show Playlist
|
|
||||||
Ctrl+p script-message mpv.net show-profiles #menu: View > Show Profiles
|
|
||||||
p show-progress #menu: View > Show Progress
|
|
||||||
Shift+p script-message mpv.net show-properties #menu: View > Show Properties
|
|
||||||
_ script-message mpv.net show-protocols #menu: View > Show Protocols
|
|
||||||
F9 show-text ${track-list} 5000 #menu: View > Show Tracks
|
|
||||||
Ctrl+m script-message mpv.net show-media-info #menu: View > Show Media Info
|
|
||||||
|
|
||||||
c script-message mpv.net show-conf-editor #menu: Settings > Show Config Editor
|
h script-message mpv.net show-history #menu: Tools > Show History
|
||||||
Ctrl+i script-message mpv.net show-input-editor #menu: Settings > Show Input Editor
|
l ab-loop #menu: Tools > Set/clear A-B loop points
|
||||||
Ctrl+f script-message mpv.net open-conf-folder #menu: Settings > Open Config Folder
|
L cycle-values loop-file inf no #menu: Tools > Toggle infinite file looping
|
||||||
|
_ playlist-shuffle #menu: Tools > Shuffle Playlist
|
||||||
|
Ctrl+h cycle-values hwdec auto no #menu: Tools > Toggle Hardware Decoding
|
||||||
|
_ script-message mpv.net show-setup-dialog #menu: Tools > Setup...
|
||||||
|
|
||||||
F1 script-message mpv.net show-command-palette #menu: Tools > Show All Commands
|
_ script-message mpv.net shell-execute https://mpv.io #menu: Help > Website mpv
|
||||||
h script-message mpv.net show-history #menu: Tools > Show History
|
_ script-message mpv.net shell-execute https://github.com/stax76/mpv.net #menu: Help > Website mpv.net
|
||||||
l ab-loop #menu: Tools > Set/clear A-B loop points
|
_ ignore #menu: Help > -
|
||||||
L cycle-values loop-file inf no #menu: Tools > Toggle infinite file looping
|
_ script-message mpv.net shell-execute https://mpv.io/manual/stable/ #menu: Help > Manual mpv
|
||||||
_ playlist-shuffle #menu: Tools > Shuffle Playlist
|
_ script-message mpv.net shell-execute https://github.com/stax76/mpv.net/blob/master/docs/Manual.md #menu: Help > Manual mpv.net
|
||||||
Ctrl+h cycle-values hwdec auto no #menu: Tools > Toggle Hardware Decoding
|
_ ignore #menu: Help > -
|
||||||
_ script-message mpv.net show-setup-dialog #menu: Tools > Setup...
|
_ script-message mpv.net update-check #menu: Help > Check for Updates
|
||||||
|
_ script-message mpv.net show-about #menu: Help > About mpv.net
|
||||||
|
|
||||||
_ script-message mpv.net shell-execute https://mpv.io #menu: Help > Website mpv
|
F1 script-message mpv.net show-command-palette #menu: Command Palette
|
||||||
_ script-message mpv.net shell-execute https://github.com/stax76/mpv.net #menu: Help > Website mpv.net
|
|
||||||
_ ignore #menu: Help > -
|
|
||||||
_ script-message mpv.net shell-execute https://mpv.io/manual/stable/ #menu: Help > Manual mpv
|
|
||||||
_ script-message mpv.net shell-execute https://github.com/stax76/mpv.net/blob/master/docs/Manual.md #menu: Help > Manual mpv.net
|
|
||||||
_ ignore #menu: Help > -
|
|
||||||
_ script-message mpv.net update-check #menu: Help > Check for Updates
|
|
||||||
_ script-message mpv.net show-about #menu: Help > About mpv.net
|
|
||||||
|
|
||||||
_ ignore #menu: -
|
_ ignore #menu: -
|
||||||
Esc quit #menu: Exit
|
Esc quit #menu: Exit
|
||||||
Q quit-watch-later #menu: Exit Watch Later
|
Q quit-watch-later #menu: Exit Watch Later
|
||||||
|
|
||||||
Power quit
|
|
||||||
Play cycle pause
|
|
||||||
Pause cycle pause
|
|
||||||
PlayPause cycle pause
|
|
||||||
MBTN_Mid cycle pause
|
|
||||||
Stop stop
|
|
||||||
Forward seek 60
|
|
||||||
Rewind seek -60
|
|
||||||
Wheel_Up add volume 2
|
|
||||||
Wheel_Down add volume -2
|
|
||||||
Wheel_Left add volume -2
|
|
||||||
Wheel_Right add volume 2
|
|
||||||
Prev playlist-prev
|
|
||||||
Next playlist-next
|
|
||||||
MBTN_Forward playlist-next
|
|
||||||
MBTN_Back playlist-prev
|
|
||||||
> playlist-next
|
|
||||||
< playlist-prev
|
|
||||||
Ctrl+Wheel_Up no-osd seek 7
|
|
||||||
Ctrl+Wheel_Down no-osd seek -7
|
|
||||||
MBTN_Left_DBL cycle fullscreen
|
|
||||||
KP_Enter cycle fullscreen
|
|
||||||
|
|
||||||
|
Power quit
|
||||||
|
Play cycle pause
|
||||||
|
Pause cycle pause
|
||||||
|
PlayPause cycle pause
|
||||||
|
MBTN_Mid cycle pause
|
||||||
|
Stop stop
|
||||||
|
Forward seek 60
|
||||||
|
Rewind seek -60
|
||||||
|
Wheel_Up add volume 2
|
||||||
|
Wheel_Down add volume -2
|
||||||
|
Wheel_Left add volume -2
|
||||||
|
Wheel_Right add volume 2
|
||||||
|
Prev playlist-prev
|
||||||
|
Next playlist-next
|
||||||
|
MBTN_Forward playlist-next
|
||||||
|
MBTN_Back playlist-prev
|
||||||
|
> playlist-next
|
||||||
|
< playlist-prev
|
||||||
|
Ctrl+Wheel_Up no-osd seek 7
|
||||||
|
Ctrl+Wheel_Down no-osd seek -7
|
||||||
|
MBTN_Left_DBL cycle fullscreen
|
||||||
|
KP_Enter cycle fullscreen
|
||||||
|
|||||||
@@ -1065,11 +1065,11 @@ namespace mpvnet
|
|||||||
if (CommandPaletteHost != null)
|
if (CommandPaletteHost != null)
|
||||||
{
|
{
|
||||||
ActiveControl = null;
|
ActiveControl = null;
|
||||||
CommandPalette.Instance.SearchControl.SearchTextBox.Text = "";
|
|
||||||
Controls.Remove(CommandPaletteHost);
|
Controls.Remove(CommandPaletteHost);
|
||||||
CommandPaletteHost.Child = null;
|
CommandPaletteHost.Child = null;
|
||||||
CommandPaletteHost.Dispose();
|
CommandPaletteHost.Dispose();
|
||||||
CommandPaletteHost = null;
|
CommandPaletteHost = null;
|
||||||
|
CommandPalette.Instance.SearchControl.SearchTextBox.Text = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user