mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-22 01:43:29 +01:00
Ability for Navidrome to have custom client app per mime type, so can have custom transcoders per audio file type. Change stream to stream rather than buffer response in byte array
This commit is contained in:
@@ -115,10 +115,10 @@ export const albumToAlbumSummary = (it: Album): AlbumSummary => ({
|
||||
|
||||
export type StreamingHeader = "content-type" | "content-length" | "content-range" | "accept-ranges";
|
||||
|
||||
export type Stream = {
|
||||
export type TrackStream = {
|
||||
status: number;
|
||||
headers: Record<StreamingHeader, string>;
|
||||
data: Buffer;
|
||||
stream: any;
|
||||
};
|
||||
|
||||
export type CoverArt = {
|
||||
@@ -152,7 +152,7 @@ export interface MusicLibrary {
|
||||
}: {
|
||||
trackId: string;
|
||||
range: string | undefined;
|
||||
}): Promise<Stream>;
|
||||
}): Promise<TrackStream>;
|
||||
coverArt(id: string, type: "album" | "artist", size?: number): Promise<CoverArt | undefined>;
|
||||
scrobble(id: string): Promise<boolean>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user