Prev: 9.4. Custom Playlist Menu Commands[ home ]Next: 9.6. Custom Keybindings

9.5. Custom Remote Commands

You can add custom remote commands to Aqualung by calling the `add_remote_command' function with a string and a function. The string is the name of the remote command, and the function is the function to call when the remote command is triggered. You can call a custom remote command using the -C argument to aqualung (e.g. `aqualung -C function_name'). The string argument/function name should be fewer than 250 characters. The function should accept zero arguments.

Example 1: Exiting Aqualung immediately

add_remote_command("exit", function ()
os.exit()
end)

Call with `aqualung -C exit'. Using this example is not recommended.


Prev: 9.4. Custom Playlist Menu Commands[ home ]Next: 9.6. Custom Keybindings