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.
§Arguments
property
: The name of the property to retrieve.socket_path
: An optional custom socket path.
§Returns
A Result
containing the response data.
§Errors
Returns an error if the connection to the socket fails or the command execution encounters issues.