stax76 215718dd63 -
2017-09-02 05:42:25 +02:00
-
2017-09-02 05:42:25 +02:00
-
2017-09-02 05:42:25 +02:00
-
2017-09-02 04:58:37 +02:00
-
2017-09-02 04:35:24 +02:00
2017-08-27 09:36:10 +02:00
-
2017-08-27 09:56:42 +02:00
-
2017-09-02 04:35:24 +02:00
-
2017-09-02 04:58:37 +02:00

mpv.net

mpv.net is a libmpv based media player for Windows, it looks and works like mpv, even shares the settings and therefore the mpv documentation applies, it can be found at:

https://mpv.io/manual/master/

Features

  • mpv's OSC, IPC, Lua/JS, conf files and more
  • Context menu which can be customized
  • Addons 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
{
    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());
    }
}

Context Menu

The context menu can be customized via input.conf file located at:

C:\Users\Frank\AppData\Roaming\mpv\input.conf

https://github.com/stax76/mpvnet/blob/master/mpvnet/Resources/input_conf.txt

Languages
C# 97.8%
PowerShell 2%
Inno Setup 0.2%