partial download support for stream caching, better error handling

This commit is contained in:
2026-09-02 18:23:16 +02:00
parent 62af3683a4
commit d7999785c8
4 changed files with 230 additions and 63 deletions
+17 -10
View File
@@ -3,18 +3,25 @@ export type Track = [number, string, string];
/** The summary shape used in sidebar listings. */
export interface StreamSummary {
id: string;
stream_date: number;
filename: string;
title: string | null;
tags: string[];
length_seconds: number;
id: string;
stream_date: number;
filename: string;
title: string | null;
tags: string[];
length_seconds: number;
}
/** The full stream shape used on the detail/player page. */
export interface Stream extends StreamSummary {
format: string;
description: string | null;
descriptionHtml: string;
tracks: Track[];
format: string;
description: string | null;
descriptionHtml: string;
tracks: Track[];
}
/** Partial stream downloads, as well as associated etag for cache validation. */
export interface PartialDownload {
received: number;
total: number;
etag: string | null;
}