Get Preview Recording File Path

Learn how to access the recorded file path

Once your recording state changes to ReplayKitRecordingState.Available the file can be accessed. This is a file internal to the app and if you want it to use it later, make sure you copy it to your own folders. Else, on next start of recording, the file will get deleted by default.

This call returns a file path if successfully recorded. It returns false if the file path is not yet available or if recording fails.

ReplayKitManager.GetPreviewFilePath()

‚Äč

Example

string GetRecordingFile()
{
if(ReplayKitManager.IsPreviewAvailable())
{
return ReplayKitManager.GetPreviewFilePath();
}
else
{
Debug.LogError("File not yet available. Please wait for ReplayKitRecordingState.Available status");
}
}