Files
mpv.net/scripts/c-sharp/observe-property-and-draw-text.cs
Frank Skare 28045ad33e 5.4.5.1 Beta
2020-05-03 11:10:56 +02:00

22 lines
394 B
C#

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