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