Add method to call custom commands
This commit is contained in:
parent
8e47f52803
commit
9552cad8ef
|
@ -502,6 +502,13 @@ impl Mpv {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Run a custom command.
|
||||||
|
/// This should only be used if the desired command is not implemented
|
||||||
|
/// with [MpvCommand].
|
||||||
|
pub fn run_command_raw(&self, command: &str, args: &[&str]) -> Result<(), Error> {
|
||||||
|
run_mpv_command(self, command, args)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn playlist_add(
|
pub fn playlist_add(
|
||||||
&self,
|
&self,
|
||||||
file: &str,
|
file: &str,
|
||||||
|
|
Loading…
Reference in New Issue