Open
Description
Hi
I suggest integrating a function isPaused()
bool DFPlayerMini_Fast::isPaused()
{
int16_t result = query(dfplayer::GET_STATUS_);
if (result != -1)
return (result & 2);
return 0;
}
This is useful if you want some content (like actual time or some other information) played while the main file is paused and you don't want to restart the main file but resume later.
So if you pause a playback you can later on differentiate between pause and idle. It is necessary because advertisements do not start without a main file playing unless a 'helper-file' with silence is started before playAdvertisement()
Uli
Metadata
Metadata
Assignees
Labels
No labels