Preview

Learn how to show preview of the recording

Once you recording state changes to ReplayKitRecordingState.Available the preview will be available. Calling this method opens up a view/intent to play the recorded video.

This call returns a bool where it's true when the preview is opened successfully. It returns false if preview is not yet ready or there is no recording done earlier.

ReplayKitManager.Preview()

You can have your own custom video preview by making use of the file path(GetPreviewFilePath) and Unity Video Player‚Äč

Example

bool Preview()
{
if(ReplayKitManager.IsPreviewAvailable())
{
return ReplayKitManager.Preview();
}
// Still preview is not available. Make sure you call preview after you receive ReplayKitRecordingState.Available status from DidRecordingStateChange
return false;
}