From b4d2a7e86dcd4b19b069da51c4d58e4345c3d31c Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Sat, 23 Mar 2019 04:21:45 +0100 Subject: [PATCH] - --- README.md | 14 +++++++------- mpv.net/Resources/input.conf.txt | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f0e02ef..ca93bbb 100644 --- a/README.md +++ b/README.md @@ -39,11 +39,11 @@ https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/mpv.conf.txt A simple C# script located at: ``` -C:\Users\username\AppData\Roaming\mpv\scripts\test.cs +C:\Users\username\AppData\Roaming\mpv\scripts\fullscreen.cs ``` or ``` -startup\scripts\test.cs +startup\scripts\fullscreen.cs ``` ``` using mpvnet; @@ -68,11 +68,11 @@ class Script A simple Python script located at: ``` -C:\Users\user\AppData\Roaming\mpv\scripts +C:\Users\user\AppData\Roaming\mpv\scripts\seek-show-position.py ``` or ``` -startup\scripts +startup\scripts\seek-show-position.py ``` ``` # when seeking displays position and @@ -107,13 +107,13 @@ mp.register_event("seek", seek) # or use: mp.Seek += seek A simple PowerShell script located at: ``` -C:\Users\user\AppData\Roaming\mpv\scripts +C:\Users\user\AppData\Roaming\mpv\scripts\seek.ps1 ``` or ``` -startup\scripts +startup\scripts\seek.ps1 ``` -Please note that PowerShell don't allow assigning to events and mpv.net uses as workaround a matching script filename. +Please note that PowerShell don't allow assigning to events and mpv.net uses as workaround a matching script filename, a list of available events can be found in the mpv manual or in the file mp.cs in the mpv.net source code. ``` $position = [mp]::get_property_number("time-pos"); diff --git a/mpv.net/Resources/input.conf.txt b/mpv.net/Resources/input.conf.txt index 30e78a0..72386e9 100644 --- a/mpv.net/Resources/input.conf.txt +++ b/mpv.net/Resources/input.conf.txt @@ -38,7 +38,7 @@ w add panscan -0.1 #menu: W ; Pan && Scan > Decrease Height W add panscan +0.1 #menu: Shift+W ; Pan && Scan > Increase Height _ ignore #menu: _ ; Pan && Scan > - - Ctrl+BS set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0 #menu: Shift+Backspace ; Pan && Scan > Reset + Ctrl+BS set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0 #menu: Ctrl+Backspace ; Pan && Scan > Reset Ctrl+1 add contrast -1 #menu: Ctrl+1 ; Video > Decrease Contrast Ctrl+2 add contrast 1 #menu: Ctrl+2 ; Video > Increase Contrast