From ae0a40259fa9ce45d34c966da067e20a69156330 Mon Sep 17 00:00:00 2001 From: Dan Oscarsson Date: Mon, 27 Mar 2017 11:34:02 +0200 Subject: player: add --keep-open-pause=no option Instead of pausing if --keep-open is active, stop at end but continue playing if seeking backwards. And then stop again when end is reached. Signed-off-by: wm4 Over the PR, the option was renamed, and the manpage additions were slightly changed/enhanced. --- DOCS/interface-changes.rst | 1 + DOCS/man/options.rst | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'DOCS') diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index f3605016a8..d2618e1945 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -43,6 +43,7 @@ Interface changes moved to "somewhere else" syntax-wise. - deprecate --loop - after a deprecation period, it will be undeprecated, but changed to alias --loop-file + - add --keep-open-pause=no --- mpv 0.24.0 --- - deprecate --hwdec-api and replace it with --opengl-hwdec-interop. The new option accepts both --hwdec values, as well as named backends. diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 7ca4b1d542..5814a41634 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -2070,6 +2070,9 @@ Window Instead, pause the player. When trying to seek beyond end of the file, the player will attempt to seek to the last frame. + Normally, this will act like ``set pause yes`` on EOF, unless the + ``--keep-open-pause=no`` option is set. + The following arguments can be given: :no: If the current file ends, go to the next file or terminate. @@ -2096,6 +2099,11 @@ Window file.mkv normally, then fail to open ``/dev/null``, then exit). (In mpv 0.8.0, ``always`` was introduced, which restores the old behavior.) +``--keep-open-pause=`` + If set to ``no``, instead of pausing when ``--keep-open`` is active, just + stop at end of file and continue playing forward when you seek backwards + until end where it stops again. Default: ``yes``. + ``--image-display-duration=`` If the current file is an image, play the image for the given amount of seconds (default: 1). ``inf`` means the file is kept open forever (until -- cgit v1.2.3