1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 06:11:10 +00:00
mpv/player/lua
Julian 98ddbf8c34 stats: support for multiple "pages" of stats
Please note that the latest version of this script needs a very recent
version of mpv (from yesterday, to be precise, see the readme).
For older versions, please go to "releases".

HOW IT WORKS:
While the stats are visible (i.e. text is printed to the OSD) a
subsequent click on a numeric key (1, 2, ...) will display the
corresponding "page".
This works no matter if the stats are toggled or just shown as a single
invocation. In case of a single invocation, the newly displayed page
will be shown for the full duration again.
The selected page will be remembered (not persistantly though).

So far, only 3 pages are available.
1: the default page, stats as they used to be
2: extensive VO performance stats (to be redesigned/changed soon)
3: dummy

In the future, many more pages are possible.

Implementation is likely to change again (functionality will stay
the same). A new timer had to be introduced to remove the forced
keybindings in the oneshot case. The toggle case can remove them without
a timer. Ensuring that each mode won't remove timers of the other mode
didn't really turn out neat.
Therefore, I intend to change this again, maybe by merging the
oneshot case into the toggle case.
2017-10-09 20:40:32 +02:00
..
assdraw.lua lua: do not use math.pow() 2015-01-25 01:23:29 +01:00
defaults.lua lua: allow unregistration of idle handlers 2017-01-15 17:02:21 +01:00
options.lua lua: fix options submodule 2015-05-29 15:50:09 +02:00
osc.lua osc: fix rare stack overflow when changing visibility mode 2017-09-23 14:41:17 +03:00
stats.lua stats: support for multiple "pages" of stats 2017-10-09 20:40:32 +02:00
ytdl_hook.lua ytdl_hook: resolve relative paths when joining segment urls 2017-09-03 13:42:51 +01:00