Mpv: Ability to reload input.conf

Created on 7 Dec 2018  Â·  5Comments  Â·  Source: mpv-player/mpv

I like to be able to assign a keybinding to reload input.conf. It can have two modes, one loading the file on top of the current config, another one on top of the default config.
(Related issue: https://github.com/mpv-player/mpv/issues/4718)

api option-param-conf feature-request

Most helpful comment

I add hotkeys the first time I need them, and I appreciate if I don’t have
to restart the app.

On Fri, Dec 7, 2018 at 7:40 PM Akemi notifications@github.com wrote:

you should probably tell us your use-case, maybe your problem can be
solved differently.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mpv-player/mpv/issues/6362#issuecomment-445280538,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aii--glrvxdDZrVGobJtwgsvILG-3Fyfks5u2pLlgaJpZM4ZILXR
.

All 5 comments

you should probably tell us your use-case, maybe your problem can be solved differently.

I add hotkeys the first time I need them, and I appreciate if I don’t have
to restart the app.

On Fri, Dec 7, 2018 at 7:40 PM Akemi notifications@github.com wrote:

you should probably tell us your use-case, maybe your problem can be
solved differently.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mpv-player/mpv/issues/6362#issuecomment-445280538,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aii--glrvxdDZrVGobJtwgsvILG-3Fyfks5u2pLlgaJpZM4ZILXR
.

we could probably use mpv_load_config_file, though it will just load a new config and keeps everything that was loaded before. so it doesn't reset anything.

i am not sure if this is a desired behaviour?

As a workaround: you can quit-watch-later, then mpv will resume where it left (within a file and playlist)

This solves my use case. I don’t need to reset things.

On Sat, Dec 8, 2018 at 1:42 PM Akemi notifications@github.com wrote:

we could probably use mpv_load_config_file
https://github.com/mpv-player/mpv/blob/master/libmpv/client.h#L567,
though it will just load a new config and keeps everything that was
loaded before. so it doesn't reset anything.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mpv-player/mpv/issues/6362#issuecomment-445448124,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aii--qG18UzLamE3Zw3rGa-Dr0K1ELAZks5u25CfgaJpZM4ZILXR
.

Was this page helpful?
0 / 5 - 0 ratings