pub async fn create_session(
state: &AppState,
camera_id: &str,
from: DateTime<Utc>,
to: DateTime<Utc>,
) -> AppResult<PlaybackSession>Expand description
Create a playback session for camera_id over [from, to): read-lock the overlapping segments and
generate a trimmed HLS VOD playlist from them. Rejects (400) a range longer than
HELDAR_MAX_PLAYBACK_SECONDS, an empty/reversed range, or a range with no recorded footage (404).