scripting docs

This commit is contained in:
Frank Skare
2020-04-22 19:17:12 +02:00
parent 2eb324bf41
commit 14a172b78b
8 changed files with 139 additions and 6 deletions

View File

@@ -0,0 +1,18 @@
// This script observes the fullscreen property and
// draws text on screen when the property changes.
using mpvnet;
class Script
{
public Script()
{
mp.observe_property_bool("fullscreen", FullscreenChange);
}
void FullscreenChange(bool value)
{
mp.commandv("show-text", "fullscreen: " + value);
}
}