src/types/track.ts
export interface TrackSet {
audio?: AudioTrack
video?: VideoTrack
}
export interface AudioTrack {
buffer: SourceBuffer;
container: string;
codec: string;
id: string;
initSegment?: Uint8Array;
levelCodec: string;
}
export interface VideoTrack {
buffer: SourceBuffer;
container: string;
codec: string;
id: string;
initSegment?: Uint8Array;
levelCodec: string;
}