Exemple #1
0
 public void PreviewRecording()
 {
     if (!ReplayKitManager.IsPreviewAvailable())
     {
         Debug.Log("Either nothing recorded or Not yet ReplayKitRecordingState.Available received!");
     }
     ReplayKitManager.Preview();
 }
Exemple #2
0
 public void SharePreview()
 {
     if (ReplayKitManager.IsPreviewAvailable())
     {
         ReplayKitManager.SharePreview();
         SetStatus("Shared video preview");
     }
 }
Exemple #3
0
 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.");
     }
 }
Exemple #4
0
        public void IsPreviewAvailable()
        {
            bool isPreviewAvailable = ReplayKitManager.IsPreviewAvailable();

            SetStatus("Is preview available : " + isPreviewAvailable);
        }