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 StartRecording() { if (ReplayKitManager.IsRecordingAPIAvailable()) { ReplayKitManager.StartRecording(true); } else { Debug.LogError("Recording API not available!"); } }
public void Initialise() { if (ReplayKitManager.IsRecordingAPIAvailable()) { ReplayKitManager.Initialise(); } else { Debug.LogError("Recording API not available!"); } }
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 DiscardRecording() { ReplayKitManager.Discard(); }
public void StopRecording() { ReplayKitManager.StopRecording(); }
public void GetPreviewFilePath() { string filePath = ReplayKitManager.GetPreviewFilePath(); SetStatus("Recorded video preview file path : " + filePath); }
public void IsRecording() { bool isRecording = ReplayKitManager.IsRecording(); SetStatus("Is currently recording : " + isRecording); }
public void IsPreviewAvailable() { bool isPreviewAvailable = ReplayKitManager.IsPreviewAvailable(); SetStatus("Is preview available : " + isPreviewAvailable); }
public void IsRecordingAPIAvailable() { bool isAvailable = ReplayKitManager.IsRecordingAPIAvailable(); SetStatus("Recording API Available : " + isAvailable); }
public void Initialise() { ReplayKitManager.Initialise(); }
public void Discard() { bool success = ReplayKitManager.Discard(); SetStatus("Discard Recording: " + (success ? "Success" : "Failed")); }
public void Preview() { bool success = ReplayKitManager.Preview(); SetStatus("Preview Recording: " + (success ? "Success" : "Failed")); }
public void StartRecording() { ReplayKitManager.StartRecording(enableMicrophone: true); }