pub async fn get_property(
property: &str,
socket_path: Option<&str>,
-) -> Result<Option<Value>>Expand description
Sends the get_property command to retrieve a property value from MPV.
Expand description
Sends the get_property command to retrieve a property value from MPV.
§Arguments
property: The name of the property to retrieve.
diff --git a/mrc/fn.loadfile.html b/mrc/fn.loadfile.html
index 51c9d12c..d183bba4 100644
--- a/mrc/fn.loadfile.html
+++ b/mrc/fn.loadfile.html
@@ -2,7 +2,7 @@
filename: &str,
append: bool,
socket_path: Option<&str>,
-) -> Result<Option<Value>>filename: The name of the file to load.
diff --git a/mrc/fn.playlist_clear.html b/mrc/fn.playlist_clear.html
index d41df181..caa582b3 100644
--- a/mrc/fn.playlist_clear.html
+++ b/mrc/fn.playlist_clear.html
@@ -1,4 +1,4 @@
-socket_path: An optional custom socket path.
diff --git a/mrc/fn.playlist_move.html b/mrc/fn.playlist_move.html
index 20e79bb6..36a27d5e 100644
--- a/mrc/fn.playlist_move.html
+++ b/mrc/fn.playlist_move.html
@@ -2,7 +2,7 @@
from_index: usize,
to_index: usize,
socket_path: Option<&str>,
-) -> Result<Option<Value>>from_index: The index of the item to move.
diff --git a/mrc/fn.playlist_next.html b/mrc/fn.playlist_next.html
index dba68c12..6e7e5267 100644
--- a/mrc/fn.playlist_next.html
+++ b/mrc/fn.playlist_next.html
@@ -1,4 +1,4 @@
-socket_path: An optional custom socket path.
diff --git a/mrc/fn.playlist_prev.html b/mrc/fn.playlist_prev.html
index cb8a1b53..3d9bc1d0 100644
--- a/mrc/fn.playlist_prev.html
+++ b/mrc/fn.playlist_prev.html
@@ -1,4 +1,4 @@
-socket_path: An optional custom socket path.
diff --git a/mrc/fn.playlist_remove.html b/mrc/fn.playlist_remove.html
index 58194567..cb5bd50f 100644
--- a/mrc/fn.playlist_remove.html
+++ b/mrc/fn.playlist_remove.html
@@ -1,7 +1,7 @@
index: The index of the item to remove, orNoneto remove the current item.
diff --git a/mrc/fn.quit.html b/mrc/fn.quit.html
index 8dba33ee..4970850f 100644
--- a/mrc/fn.quit.html
+++ b/mrc/fn.quit.html
@@ -1,4 +1,4 @@
-socket_path: An optional custom socket path.
diff --git a/mrc/fn.seek.html b/mrc/fn.seek.html
index 777d1431..217ebe13 100644
--- a/mrc/fn.seek.html
+++ b/mrc/fn.seek.html
@@ -1,7 +1,7 @@
seconds: The number of seconds to seek.
diff --git a/mrc/fn.send_ipc_command.html b/mrc/fn.send_ipc_command.html
index 3728c844..160c39b0 100644
--- a/mrc/fn.send_ipc_command.html
+++ b/mrc/fn.send_ipc_command.html
@@ -1,8 +1,8 @@
command: The name of the command to send to MPV.
diff --git a/mrc/fn.set_property.html b/mrc/fn.set_property.html
index 935590b5..d70d4963 100644
--- a/mrc/fn.set_property.html
+++ b/mrc/fn.set_property.html
@@ -1,8 +1,8 @@
Expand description
Sends the loadfile command to load a file into MPV.
Expand description
Sends the loadfile command to load a file into MPV.
§Arguments
pub async fn playlist_clear(socket_path: Option<&str>) -> Result<Option<Value>>Expand description
Sends the playlist-clear command to clear the playlist.
pub async fn playlist_clear(socket_path: Option<&str>) -> Result<Option<Value>>Expand description
Sends the playlist-clear command to clear the playlist.
§Arguments
Expand description
Sends the playlist-move command to move a playlist item from one index to another.
Expand description
Sends the playlist-move command to move a playlist item from one index to another.
§Arguments
pub async fn playlist_next(socket_path: Option<&str>) -> Result<Option<Value>>Expand description
Sends the playlist-next command to move to the next playlist item.
pub async fn playlist_next(socket_path: Option<&str>) -> Result<Option<Value>>Expand description
Sends the playlist-next command to move to the next playlist item.
§Arguments
pub async fn playlist_prev(socket_path: Option<&str>) -> Result<Option<Value>>Expand description
Sends the playlist-prev command to move to the previous playlist item.
pub async fn playlist_prev(socket_path: Option<&str>) -> Result<Option<Value>>Expand description
Sends the playlist-prev command to move to the previous playlist item.
§Arguments
pub async fn playlist_remove(
index: Option<usize>,
socket_path: Option<&str>,
-) -> Result<Option<Value>>Expand description
Sends the playlist-remove command to remove an item from the playlist.
Expand description
Sends the playlist-remove command to remove an item from the playlist.
§Arguments
pub async fn quit(socket_path: Option<&str>) -> Result<Option<Value>>Expand description
Sends the quit command to terminate MPV.
pub async fn quit(socket_path: Option<&str>) -> Result<Option<Value>>Expand description
Sends the quit command to terminate MPV.
§Arguments
pub async fn seek(
seconds: f64,
socket_path: Option<&str>,
-) -> Result<Option<Value>>Expand description
Sends the seek command to seek the media playback by a given number of seconds.
Expand description
Sends the seek command to seek the media playback by a given number of seconds.
§Arguments
pub async fn send_ipc_command(
command: &str,
- args: &[Value],
+ args: &[Value],
socket_path: Option<&str>,
-) -> Result<Option<Value>>Expand description
Sends a generic IPC command to the specified socket and returns the parsed response data.
+) -> Result<Option<Value>>Expand description
Sends a generic IPC command to the specified socket and returns the parsed response data.