StatefulStreamMediaRecorder
A wrapper class that wraps around StreamMediaRecorder manages and tracks the internal state of the MediaRecorder used by StreamMediaRecorder.
For instance, this class helps automatically recover from MediaRecorder.MEDIA_ERROR_SERVER_DIED by releasing the current instance of streamMediaRecorder.
Parameters
The media recorder whose state this class is tracking.
Properties
Represents the duration of the currently active recording.
Emits the latest MediaRecorder max amplitude reading.
Represents the current state of the MediaRecorder.
Represents the latest error state of the MediaRecorder used by StreamMediaRecorder.
Represents the latest info state of the MediaRecorder used by StreamMediaRecorder.
Functions
Deleted the recording to the file provided by recordingFile.
Releases the MediaRecorder used by StreamMediaRecorder.
Prepares the given recordingFile and starts recording. Calling the function again after a recording has already been started will reset the recording process.
Creates a File internally and starts recording. Calling the function again after a recording has already been started will reset the recording process.
Stops recording and saves the recording to the file provided by startAudioRecording.