try fixing #662
This commit is contained in:
@@ -1093,11 +1093,11 @@ Cycles the deinterlace property using the following command:
|
|||||||
|
|
||||||
Cycles the aspect ratio 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)
|
[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
|
### Audio > Next
|
||||||
|
|||||||
@@ -1046,11 +1046,12 @@ public partial class MainForm : Form
|
|||||||
break;
|
break;
|
||||||
case 0x319: // WM_APPCOMMAND
|
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);
|
m.Result = new IntPtr(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public static class InputHelp
|
|||||||
new (_("Video"), _("Take Screenshot"), "async screenshot", "s"),
|
new (_("Video"), _("Take Screenshot"), "async screenshot", "s"),
|
||||||
new (_("Video"), _("Take Screenshot without subtitles"), "async screenshot video", "S"),
|
new (_("Video"), _("Take Screenshot without subtitles"), "async screenshot video", "S"),
|
||||||
new (_("Video"), _("Toggle Deinterlace"), "cycle deinterlace", "d"),
|
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 (_("Video"), _("Rotate Video"), "cycle-values video-rotate 90 180 270 0", "Ctrl+r"),
|
||||||
|
|
||||||
new (_("Audio"), _("Audio Device")),
|
new (_("Audio"), _("Audio Device")),
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ public class MainPlayer : MpvClient
|
|||||||
|
|
||||||
SetPropertyBool("input-default-bindings", true);
|
SetPropertyBool("input-default-bindings", true);
|
||||||
SetPropertyBool("input-builtin-bindings", false);
|
SetPropertyBool("input-builtin-bindings", false);
|
||||||
|
SetPropertyBool("input-media-keys", true);
|
||||||
|
|
||||||
SetPropertyString("media-controls", "yes");
|
SetPropertyString("media-controls", "yes");
|
||||||
SetPropertyString("idle", "yes");
|
SetPropertyString("idle", "yes");
|
||||||
|
|||||||
Reference in New Issue
Block a user