Files
mpv.net/scripts/examples/observe-property-and-draw-text.cs
2020-04-22 19:17:12 +02:00

19 lines
344 B
C#

// 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);
}
}