Skip to content

isPaused() ? #74

Description

@ulihuber

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions