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 video can be shared/saved to gallery from this view.

This call returns a bool where its 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()

‚Äč

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;
}