Who knows the android mediaplayer states by their int value in LogCat?
These are the states currently declared in mediaplayer.h on the master branch of the AOSP:
enum media_player_states {
MEDIA_PLAYER_STATE_ERROR = 0,
MEDIA_PLAYER_IDLE = 1 << 0,
MEDIA_PLAYER_INITIALIZED = 1 << 1,
MEDIA_PLAYER_PREPARING = 1 << 2,
MEDIA_PLAYER_PREPARED = 1 << 3,
MEDIA_PLAYER_STARTED = 1 << 4,
MEDIA_PLAYER_PAUSED = 1 << 5,
MEDIA_PLAYER_STOPPED = 1 << 6,
MEDIA_PLAYER_PLAYBACK_COMPLETE = 1 << 7
};
Building on Michael's answer, here are the declared states with decimal values added for each of the shifted bits. Yeah, they're trivial to calculate, but this saves the extra step when resolving LogCat messages.
enum media_player_states {
MEDIA_PLAYER_STATE_ERROR = 0, // 0
MEDIA_PLAYER_IDLE = 1 << 0, // 1
MEDIA_PLAYER_INITIALIZED = 1 << 1, // 2
MEDIA_PLAYER_PREPARING = 1 << 2, // 4
MEDIA_PLAYER_PREPARED = 1 << 3, // 8
MEDIA_PLAYER_STARTED = 1 << 4, // 16
MEDIA_PLAYER_PAUSED = 1 << 5, // 32
MEDIA_PLAYER_STOPPED = 1 << 6, // 64
MEDIA_PLAYER_PLAYBACK_COMPLETE = 1 << 7 // 128
};