public void | checkStateErrors(MediaPlayerStateErrors stateErrors)1. It is valid to call setVolume() in the following states:
{Idle, Initialized, Stopped, Prepared, Started, Paused, PlaybackComplted}.
2. It is invalid to call setVolume() in the following states:
{Error}
// Valid states.
assertTrue(!stateErrors.errorInStartedState);
assertTrue(!stateErrors.errorInStartedStateAfterPause);
assertTrue(!stateErrors.errorInPausedState);
assertTrue(!stateErrors.errorInPreparedState);
assertTrue(!stateErrors.errorInPreparedStateAfterStop);
assertTrue(!stateErrors.errorInPlaybackCompletedState);
assertTrue(!stateErrors.errorInIdleStateAfterReset);
assertTrue(!stateErrors.errorInInitializedState);
assertTrue(!stateErrors.errorInStoppedState);
assertTrue(!stateErrors.errorInIdleState);
// Invalid states.
assertTrue(stateErrors.errorInErrorState);
|