From d26803cba00f9ecfe7c1c0914f133e775638183b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 22 May 2015 20:02:47 +0200 Subject: command: deprecate the "length" property It collides with the --length option. --- DOCS/interface-changes.rst | 1 + DOCS/man/input.rst | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'DOCS') diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index b91cfb8f00..cae71465e2 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -20,6 +20,7 @@ Interface changes :: --- mpv 0.10.0 will be released --- + - deprecate "length" property, replaced with "duration" - change volume property: - the value 100 is now always "unchanged volume" - with softvol, the range is 0 to --softvol-max, without it is 0-100 diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index d264b2703d..09cbe8b718 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -842,11 +842,14 @@ Property list ``stream-end`` Raw end position in bytes in source stream. -``length`` - Length of the current file in seconds. If the length is unknown, the +``duration`` + Duration of the current file in seconds. If the duration is unknown, the property is unavailable. Note that the file duration is not always exactly known, so this is an estimate. + This replaces the ``length`` property, which was deprecated after the + mpv 0.9 release. (The semantics are the same.) + ``avsync`` Last A/V synchronization difference. Unavailable if audio or video is disabled. -- cgit v1.2.3