app-tauri-plugin-player 0.1.0

Player plugin
1
2
3
4
5
6
7
8
9
10
11
12
13
use tauri::{command, AppHandle, Runtime};

use crate::models::*;
use crate::PlayerExt;
use crate::Result;

#[command]
pub(crate) async fn update_state<R: Runtime>(
    app: AppHandle<R>,
    payload: UpdateState,
) -> Result<StateResponse> {
    app.player().update_state(payload)
}