Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.22 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.22 KB

mpv-persist

Persist certain properties to the directory-specific configuration file.

Installation

  1. Download persist.lua.
  2. Place it in the scripts directory of your mpv installation.

For more details, see Script location - mpv.io.

Configuration

  1. Download persist.conf.
  2. Place it in the script-opts directory of your mpv installation.

For more details, see mp.options functions - mpv.io.

props

The props option contains the list of properties to be persisted.

By default, the following properties are persisted:

  • volume
  • sid
  • sub-delay
  • secondary-sid
  • secondary-sub-delay

How it works

  1. Observes property changes.
  2. Persists these properties.
  3. Loads them on the file-loaded event, which is necessary to prevent unexpected property resets.

References