This commit is contained in:
stax76
2024-09-05 23:33:13 +02:00
parent 9355e2f50c
commit 94ecf4a069
4 changed files with 8 additions and 6 deletions

View File

@@ -1093,11 +1093,11 @@ Cycles the deinterlace property using the following command:
Cycles the aspect ratio using the following command:
`cycle-values video-aspect 16:9 4:3 2.35:1 -1`
`cycle-values video-aspect-override 16:9 4:3 2.35:1 0 -1`
[cycle-values command](https://mpv.io/manual/master/#command-interface-cycle-values)
[video-aspect property](https://mpv.io/manual/master/#command-interface-video-aspect)
[video-aspect property](https://mpv.io/manual/master/#options-video-aspect-override)
### Audio > Next

View File

@@ -1046,11 +1046,12 @@ public partial class MainForm : Form
break;
case 0x319: // WM_APPCOMMAND
{
string? value = MpvHelp.WM_APPCOMMAND_to_mpv_key((int)(m.LParam.ToInt64() >> 16 & ~0xf000));
string? key = MpvHelp.WM_APPCOMMAND_to_mpv_key((int)(m.LParam.ToInt64() >> 16 & ~0xf000));
bool inputMediaKeys = Player.GetPropertyBool("input-media-keys");
if (value != null)
if (key != null && inputMediaKeys)
{
Player.Command("keypress " + value);
Player.Command("keypress " + key);
m.Result = new IntPtr(1);
return;
}

View File

@@ -79,7 +79,7 @@ public static class InputHelp
new (_("Video"), _("Take Screenshot"), "async screenshot", "s"),
new (_("Video"), _("Take Screenshot without subtitles"), "async screenshot video", "S"),
new (_("Video"), _("Toggle Deinterlace"), "cycle deinterlace", "d"),
new (_("Video"), _("Change Aspect Ratio"), "cycle-values video-aspect-override 16:9 4:3 2.35:1 -1", "a"),
new (_("Video"), _("Change Aspect Ratio"), "cycle-values video-aspect-override 16:9 4:3 2.35:1 0 -1", "a"),
new (_("Video"), _("Rotate Video"), "cycle-values video-rotate 90 180 270 0", "Ctrl+r"),
new (_("Audio"), _("Audio Device")),

View File

@@ -102,6 +102,7 @@ public class MainPlayer : MpvClient
SetPropertyBool("input-default-bindings", true);
SetPropertyBool("input-builtin-bindings", false);
SetPropertyBool("input-media-keys", true);
SetPropertyString("media-controls", "yes");
SetPropertyString("idle", "yes");