Share Recorded Video

Learn how to share recorded video

Once you recording state changes to ReplayKitRecordingState.Available the file can be shared. This allows sharing of the recorded video.

public void SharePreview()
{
if(ReplayKitManager.IsPreviewAvailable())
{
ReplayKitManager.SharePreview();
Debug.Log("Shared video preview");
}
else
{
Debug.LogError("Recorded file not yet available. Please wait for ReplayKitRecordingState.Available status");
}
}