react-native-track-player
Version:
A fully fledged audio module created for music apps
16 lines (15 loc) • 449 B
TypeScript
export interface Progress {
/**
* The playback position of the current track in seconds.
* See https://rntp.dev/docs/api/functions/player#getposition
**/
position: number;
/** The duration of the current track in seconds.
* See https://rntp.dev/docs/api/functions/player#getduration
**/
duration: number;
/**
* The buffered position of the current track in seconds.
**/
buffered: number;
}