From f4bc3831e1126b4ef6edf1a6881ebff16d2566b5 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 7 Feb 2024 19:24:41 +0100 Subject: [PATCH] Add thumbnail track option to response --- src/providers/streams.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/providers/streams.ts b/src/providers/streams.ts index f4674c6..17567a4 100644 --- a/src/providers/streams.ts +++ b/src/providers/streams.ts @@ -8,10 +8,16 @@ export type StreamFile = { export type Qualities = 'unknown' | '360' | '480' | '720' | '1080' | '4k'; +type ThumbnailTrack = { + type: 'vtt'; + url: string; +}; + type StreamCommon = { id: string; // only unique per output flags: Flags[]; captions: Caption[]; + thumbnailTrack?: ThumbnailTrack; headers?: Record; // these headers HAVE to be set to watch the stream preferredHeaders?: Record; // these headers are optional, would improve the stream };