Skip to main content

Module player_session

Module player_session 

Source
Expand description

Tauri-side player session — the shared state behind the IPC commands.

Holds a long-lived [Application] (built once at app boot) and an Option<Inner> carrying the live [Player] for the currently-open video. open builds a fresh Inner; play/pause/tick mutate it.

All public methods take &self and lock internally. The Tauri tick thread and the IPC command handlers all share a single PlayerSession through tauri::State<PlayerSession>.

Structs§

Inner 🔒
PlayerSession
Tauri shell’s player state. Shared via tauri::State<PlayerSession>.
PlayerStatus
IPC payload emitted on the player-status event and returned from the player_open / player_status commands.

Enums§

SessionState
IPC-stable enum for the player’s lifecycle. Mirrored on the frontend.

Functions§

ms_from_duration 🔒
status_of 🔒