[sub-pause] Rebinding key only works when sent to all clients (script can't be targeted)
Closed this issue · 2 comments
Trying to rebind the sub-pause-toggle-end
in input.conf
only works when sent to all clients.
These work:
N script-binding sub-pause-toggle-end
N script-message sub-pause-toggle-end
These do not:
N script-binding sub-pause/sub-pause-toggle-end
N script-message-to sub-pause sub-pause-toggle-end
While I think it's quite unlikely that any other script would have a function specifically named sub-pause-toggle-end
, it would probably still be good practice to implement support for this in order to prevent name conflicts.
You need to use sub_pause/...
. mpv replaces all non-ASCII-alphanumeric characters with _
when generating the script ID (cf. player/scripting.c).
I added an explanation to the readme
I see, my mistake then. Thanks for teaching me something new anyhow!