pub fn media_local_selection(
server: State<'_, MediaServerWrapper>,
path: String,
) -> Result<StreamSelection, String>Expand description
The stream selection for a downloaded file.
The local-playback counterpart to repository_get_stream_selection. A file
on disk needs no negotiation — it is a direct play over a local transport,
with no quality ladder, because nothing about it can be re-negotiated — but
the frontend must not be the one to say so. It gets the same
[StreamSelection] shape as a streamed source so the player has one contract
to consume rather than two, and so no caller has to infer a transport from a
loopback URL.
TRACES: UR-071, UR-079 | DR-225