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