From 1ac603b904f40bace268c019bfab7c14836d99a0 Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Sun, 14 Jul 2019 04:03:58 +0200 Subject: [PATCH] - --- Manual.md | 2 +- README.md | 19 +++++++++++++++++-- mpv.net/WinForms/MainForm.cs | 7 +++---- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/Manual.md b/Manual.md index 1b60470..b45b669 100644 --- a/Manual.md +++ b/Manual.md @@ -734,7 +734,7 @@ Shows the command palette window which allows to find mpv.net commands, it shows ### Tools > Show History -When enabled shows a file that contains the playback history containing the time and filename. +Shows a text file that contains the file history. If the file don't exist it asks if the file should be created in the settings folder. Once the file exist then the history is logged. It logges the playback history containing the time and filename. ### Tools > Set/clear A-B loop points diff --git a/README.md b/README.md index 230c0d3..0a7c776 100644 --- a/README.md +++ b/README.md @@ -46,19 +46,34 @@ Table of contents ### Features +- Extremely high degree of mpv compatibility, almost all mpv features are available - Customizable context menu defined in the same file as the key bindings ([Screenshot](#context-menu-screenshot), [Defaults](https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/inputConf.txt)) - Searchable config dialog ([Screenshot](#config-editor-screenshot), [Defaults](https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/mpvConf.txt)) - Searchable input (key/mouse) binding editor ([Screenshot](#input-editor-screenshot), [Defaults](https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/inputConf.txt)) +- Configuration files that are easy to read and edit - Searchable command palette to quickly launch commands and look for keys ([Screenshot](#command-palette-screenshot)) -- Modern UI with dark mode ([Screenshot](#config-editor-screenshot)) +- Modern WPF based graphical user interface with dark mode ([Screenshot](#config-editor-screenshot)) - Addon/extension API for .NET languages - Scripting API for Python, C#, Lua, JavaScript and PowerShell ([Wiki](https://github.com/stax76/mpv.net/wiki/Scripting)) -- mpv's OSC, IPC and conf files +- On Screen Controler (OSC, play control buttons) - [Command Line Interface](https://mpv.io/manual/master/#options) - DXVA2 video decoding acceleration - OpenGL based video output capable of features loved by videophiles, such as video scaling with popular high quality algorithms, color management, frame timing, interpolation, HDR, and more - Search feature powered by [Everything](https://www.voidtools.com) to find and play media ([Screenshot](#media-search-screenshot)) - Extension to start mpv.net from Google Chrome ([Manual](Manual.md#chrome-extension)) +- Extremely fast seek performance +- Very fast startup performance, video is usally ready to play in less then a second +- All decoders are built-in, no external codecs have to be installed +- Setup and portable download options, Setup is recommended but not required +- Build-in media streaming via youtube-dl +- x64 and x86 Support (64-bit and 32-bit) +- File associations can be created by the setup and from the player +- JSON IPC +- External audio and subtitle files can either be loaded manually or automatically +- Screenshot feature with many options +- File history feature to log time and filename +- A-B loop feature +- watch later feature to save the position ### Screenshots diff --git a/mpv.net/WinForms/MainForm.cs b/mpv.net/WinForms/MainForm.cs index cb4969c..315a34e 100644 --- a/mpv.net/WinForms/MainForm.cs +++ b/mpv.net/WinForms/MainForm.cs @@ -9,7 +9,6 @@ using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.Threading.Tasks; -using System.Diagnostics; namespace mpvnet { @@ -31,13 +30,14 @@ namespace mpvnet try { + Instance = this; + Hwnd = Handle; + mp.Init(); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; Application.ThreadException += Application_ThreadException; Msg.SupportURL = "https://github.com/stax76/mpv.net#support"; - Instance = this; WPF.WPF.Init(); System.Windows.Application.Current.ShutdownMode = System.Windows.ShutdownMode.OnExplicitShutdown; - Hwnd = Handle; Text += " " + Application.ProductVersion; object recent = RegHelp.GetObject(App.RegPath, "Recent"); @@ -77,7 +77,6 @@ namespace mpvnet mp.VideoSizeChanged += VideoSizeChanged; mp.FileLoaded += FileLoaded; mp.Idle += Idle; - Task.Run(() => mp.Init()); mp.VideoSizeAutoResetEvent.WaitOne(3000); if (Height < FontHeight * 3) SetFormPosAndSize(); mp.observe_property_bool("fullscreen", PropChangeFullscreen);