Skip to main content

Module media_cmd

Module media_cmd 

Source
Expand description

Tauri commands for the loopback media server.

§Commands

§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§

MediaRegisterResponse
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.