partial download support for stream caching, better error handling
This commit is contained in:
+17
-10
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user