import type { PitchAlgorithm, TrackType } from '../constants'; import { ResourceObject } from './ResourceObject'; import type { TrackMetadataBase } from './TrackMetadataBase'; export interface Track extends TrackMetadataBase { url: string; type?: TrackType; /** The user agent HTTP header */ userAgent?: string; /** Mime type of the media file */ contentType?: string; /** (iOS only) The pitch algorithm to apply to the sound. */ pitchAlgorithm?: PitchAlgorithm; headers?: { [key: string]: any; }; /** * When true, the track won't load or play when it becomes current. * The track stays in the queue but playback is blocked. */ notPlayable?: boolean; [key: string]: any; } export type AddTrack = Track & { url: string | ResourceObject; artwork?: string | ResourceObject; };