react-native-track-player
Version:
A fully fledged audio module created for music apps
22 lines (21 loc) • 681 B
TypeScript
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;
};
[key: string]: any;
}
export type AddTrack = Track & {
url: string | ResourceObject;
artwork?: string | ResourceObject;
};