You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Hi
I suggest integrating a function isPaused()
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
The text was updated successfully, but these errors were encountered: