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