Files
mpv.net/README.md
2017-09-02 04:17:48 +02:00

33 lines
735 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# mpv.net
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());
}
}
´´´