From 9b192de32970c2bb08b721c7d3ee3c1ffff681c0 Mon Sep 17 00:00:00 2001 From: stax76 Date: Sat, 2 Sep 2017 04:17:48 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac84739..c1f53f9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,32 @@ -# mpvnet +# mpv.net -libmpv based media play with dotnet addons. \ No newline at end of file +mpv.net is a very simple libmpv based media player, it works exactly like mpv, even shares the same settings. + +### Features + +- Context menu which can be customized +- Dotnet added implemented with the Managed Extension Framework (MEF) +- C# scripts implemented with CS-Script + +### + +A simple C# script located at: C:\Users\Frank\AppData\Roaming\mpv\scripts\test.cs + +´´´ +using mpvnet; + +class Script +{ + public Script() + { + var fs = mpv.GetStringProp("fullscreen"); + mpv.Command("show-text", "fullscreen: " + fs); + mpv.ObserveBoolProp("fullscreen", FullscreenChange); + } + + void FullscreenChange(bool val) + { + mpv.Command("show-text", "fullscreen: " + val.ToString()); + } +} +´´´ From cf327c52ea83345179ccd8174fe8815ab232c87b Mon Sep 17 00:00:00 2001 From: stax76 Date: Sat, 2 Sep 2017 04:20:36 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c1f53f9..2410671 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,11 @@ mpv.net is a very simple libmpv based media player, it works exactly like mpv, e - Dotnet added implemented with the Managed Extension Framework (MEF) - C# scripts implemented with CS-Script -### +### C# Scripting A simple C# script located at: C:\Users\Frank\AppData\Roaming\mpv\scripts\test.cs -´´´ +``` using mpvnet; class Script @@ -29,4 +29,4 @@ class Script mpv.Command("show-text", "fullscreen: " + val.ToString()); } } -´´´ +``` From 4f0130a52050a34e1ffcab01bb0efbebe7bae2bb Mon Sep 17 00:00:00 2001 From: stax76 Date: Sat, 2 Sep 2017 04:27:48 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2410671..a70ef9f 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # mpv.net -mpv.net is a very simple libmpv based media player, it works exactly like mpv, even shares the same settings. +mpv.net is a libmpv based media player for Windows, it looks and works exactly like mpv, even shares the same settings. ### Features - Context menu which can be customized -- Dotnet added implemented with the Managed Extension Framework (MEF) +- Addons implemented with the Managed Extension Framework (MEF) - C# scripts implemented with CS-Script ### C# Scripting