Expand description
Tauri commands for the loopback media server.
§Commands
media_register— mint a signed token and return a loopback URL.media_revoke— immediately revoke a single token.
§Design
The media server is an axum HTTP server bound to 127.0.0.1:0. The
frontend embeds the returned URL directly as a <video> or <audio> src
attribute; the browser’s byte-range requests are proxied by the server to S3.
Token security: tokens are 48 random bytes encoded as URL-safe base64 (64
chars). They are session-scoped — revoke_session sweeps all tokens when
the session ends.
Structs§
- Media
Register Response - Response from
media_register.
Functions§
- media_
register - Mint a signed token for the given S3 object and return a loopback URL.
- media_
revoke - Immediately revoke a single media token.