From 5f1ff78516bb5aaf6c38a5df55959e1165c059ee Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 20 Mar 2016 19:48:55 +0100 Subject: command: add cache-speed property Should reflect I/O speed. This could go into the terminal status line. But I'm not sure how to put it there, since it already uses too much space, so it's not there yet. --- DOCS/interface-changes.rst | 1 + DOCS/man/input.rst | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'DOCS') diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 4ef60aa312..7dac36eac9 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -24,6 +24,7 @@ Interface changes "track-list/N/demux-channel-count" instead) - remove write access to "stream-pos", and change semantics for read access - Lua scripts now don't suspend mpv by default while script code is run + - add "cache-speed" property --- mpv 0.16.0 --- - change --audio-channels default to stereo (use --audio-channels=auto to get the old default) diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 79a6790e49..63506e7a4e 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1195,6 +1195,11 @@ Property list ``cache-used`` (R) Total used cache size in KB. +``cache-speed`` (R) + Current I/O read speed between the cache and the lower layer (like network). + This is a float (using ``MPV_FORMAT_DOUBLE`` in the client API) and gives + the value bytes per seconds over a 1 second window. + ``cache-idle`` (R) Returns ``yes`` if the cache is idle, which means the cache is filled as much as possible, and is currently not reading more data. -- cgit v1.2.3