//! Tauri command handlers for player plugin operations.
//!
//! This module provides the command handlers that are exposed to the frontend
//! JavaScript/TypeScript code through Tauri's IPC mechanism.
use ;
use cratePlayerExt;
use crateResult;
use crate;
/// Updates the player state based on the provided payload.
///
/// This command allows the frontend to control various aspects of the player including
/// playback state, position, seek location, volume, and playlist.
///
/// # Errors
///
/// Returns an error if:
/// * The player backend fails to update the state
/// * The mobile plugin invocation fails (on mobile platforms)
pub async