Persist certain properties to the directory-specific configuration file.
- Download
persist.lua
. - Place it in the
scripts
directory of your mpv installation.
For more details, see Script location - mpv.io.
- Download
persist.conf
. - Place it in the
script-opts
directory of your mpv installation.
For more details, see mp.options
functions - mpv.io.
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
- Observes property changes.
- Persists these properties.
- Loads them on the
file-loaded
event, which is necessary to prevent unexpected property resets.