Cleanup prev/next

This commit is contained in:
2026-05-11 23:23:04 +02:00
parent 1e4a6e3787
commit 2519998475
15 changed files with 88 additions and 359 deletions
+3 -6
View File
@@ -1,4 +1,4 @@
export interface BaseSource {
export interface Source {
src: VideoSrc[];
startTime?: number;
subtitles: Subtitle[];
@@ -6,11 +6,6 @@ export interface BaseSource {
mixAudio?: MixAudioMode;
}
export interface Source extends BaseSource {
prev?: BaseSource
next?: BaseSource
}
export interface VideoSrc {
uri: string;
mimeType?: string;
@@ -32,6 +27,8 @@ export interface Metadata {
album?: string;
artist?: string;
imageLink?: string;
hasPrev?: boolean;
hasNext?: boolean;
}
export type MixAudioMode = "mixWithOthers" | "doNotMix" | "duckOthers" | "auto";