jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
543 stars 68 forks source link

Get current window width? #173

Closed riaqn closed 3 years ago

riaqn commented 3 years ago

I'm trying to make a customized OSD using image overlay. I want my OSD to use the full width of the window. Is there anyway to know the MPV window width?

riaqn commented 3 years ago

answering my own question: they can be retrieved by the display-width, display-height properties. You can observe_property() on these properties, then wait for PROPERTY_CHANGE event.