public void PreviewRecording() { if (!ReplayKitManager.IsPreviewAvailable()) { Debug.Log("Either nothing recorded or Not yet ReplayKitRecordingState.Available received!"); } ReplayKitManager.Preview(); }
public void SharePreview() { if (ReplayKitManager.IsPreviewAvailable()) { ReplayKitManager.SharePreview(); SetStatus("Shared video preview"); } }
public void SavePreview() //Saves preview to gallery { if (ReplayKitManager.IsPreviewAvailable()) { ReplayKitManager.SavePreview((error) => { SetStatus("Saved preview to gallery with error : " + ((error == null) ? "null" : error)); }); } else { SetStatus("Preview recording not available. If you have already recoded, wait for ReplayKitRecordingState.Available status event and try saving again."); } }
public void IsPreviewAvailable() { bool isPreviewAvailable = ReplayKitManager.IsPreviewAvailable(); SetStatus("Is preview available : " + isPreviewAvailable); }