From ccc213fdac9783b9e450342cf5a346508e961e2f Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 4 Apr 2013 14:24:42 +0200 Subject: core: add --heartbeat-interval option This closely follows MPlayer commit 36099, with some changes. Move a mutable static variable into MPContext. --- DOCS/man/en/options.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'DOCS/man') diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index d64cbe8f80..cc55c3a40e 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -786,7 +786,8 @@ --heartbeat-cmd Command that is executed every 30 seconds during playback via *system()* - - i.e. using the shell. + i.e. using the shell. The time between the commands can be customized with + the ``--heartbeat-interval`` option. *NOTE*: mpv uses this command without any checking. It is your responsibility to ensure it does not cause security problems (e.g. make @@ -805,6 +806,9 @@ *EXAMPLE for GNOME screensaver*: ``mpv --heartbeat-cmd="gnome-screensaver-command -p" file`` +--heartbeat-interval= + Time between ``--heartbeat-cmd`` invocations in seconds (default: 30). + --help Show short summary of options. -- cgit v1.2.3