// This file was generated by [tauri-specta](https://github.com/oscartbeaumont/tauri-specta). Do not edit this file manually. /** user-defined commands **/ export const commands = { /** * Play a single media item (audio or video) * * Accepts a PlayItemRequest with all optional fields properly defaulted. * This avoids Tauri's Android serialization issues with complex objects. * * @req: UR-003 - Play videos * @req: UR-004 - Play audio uninterrupted * @req: UR-005 - Control media playback (play operation) * @req: DR-009 - Audio player UI */ async playerPlayItem(item: PlayItemRequest) : Promise { return await TAURI_INVOKE("player_play_item", { item }); }, /** * Enter background-audio mode: hand playback of the currently-watched video off * to the native ExoPlayer *audio* path so the audio keeps playing while the app * is backgrounded/locked, with no client-side video decode (UR-040). * * `stream_url` MUST be an audio-only URL (see * `get_audio_only_stream_url_for_video`). The item is created as * `MediaType::Audio` so it starts an audio session and loads into the native * backend with `mediaType="audio"` — the WebView `