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