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