You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
539 B

export enum StreamType {
Dash,
Hls,
Standard
}
export interface BaseStream {
type: StreamType;
}
export interface DashStream extends BaseStream {
type: StreamType.Dash;
url: string;
}
export interface HlsStream extends BaseStream {
type: StreamType.Hls;
url: string;
}
export interface StandardStream extends BaseStream {
type: StreamType.Standard;
video: VideoStream[];
audio: AudioStream[];
}
export interface VideoStream {}
export interface AudioStream {}
export type Stream = DashStream | HlsStream | StandardStream;