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.
§Arguments
seconds
: The number of seconds to seek.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.