Skip to main content
Version: 2.1

State

All State types are made available through the named export State:

import { State } from 'react-native-track-player';
NameDescription
NoneState indicating that no media is currently loaded
ReadyState indicating that the player is ready to start playing
PlayingState indicating that the player is currently playing
PausedState indicating that the player is currently paused
StoppedState indicating that the player is currently stopped
BufferingState indicating that the player is currently buffering (in "play" state)
ConnectingState indicating that the player is currently buffering (in "pause" state)