public void | checkStateErrors(MediaRecorderStateErrors stateErrors)1. It is valid to call setAudioEncoder() in the following states:
{DataSourceConfigured}.
2. It is invalid to call setAudioEncoder() in the following states:
{Initial, Initialized, Prepared, Recording, Error}
// Valid states.
assertTrue(!stateErrors.errorInDataSourceConfiguredState);
// Invalid states.
assertTrue(stateErrors.errorInPreparedState);
assertTrue(stateErrors.errorInRecordingState);
assertTrue(stateErrors.errorInErrorState);
assertTrue(stateErrors.errorInInitialState);
assertTrue(stateErrors.errorInInitialStateAfterReset);
assertTrue(stateErrors.errorInInitialStateAfterStop);
assertTrue(stateErrors.errorInInitializedState);
|