Discard Recording

Discard a recording once its recorded

While recording is happening, the recording can be discarded with this call. It's always recommended to call discard incase if you don't need the recording. This will avoid saving the recorded content and helps in freeing any memory allocated.

recorder.DiscardRecording((success, error) => {
    if(success)
    {
        Debug.Log("Discard recording successful");
    }
    else
    {
        Debug.Log($"Discard recording failed with error [{error}]");
    }
});

Last updated