コード例 #1
0
 public void PreviewRecording()
 {
     if (!ReplayKitManager.IsPreviewAvailable())
     {
         Debug.Log("Either nothing recorded or Not yet ReplayKitRecordingState.Available received!");
     }
     ReplayKitManager.Preview();
 }
コード例 #2
0
 public void SharePreview()
 {
     if (ReplayKitManager.IsPreviewAvailable())
     {
         ReplayKitManager.SharePreview();
         SetStatus("Shared video preview");
     }
 }
コード例 #3
0
 public void StartRecording()
 {
     if (ReplayKitManager.IsRecordingAPIAvailable())
     {
         ReplayKitManager.StartRecording(true);
     }
     else
     {
         Debug.LogError("Recording API not available!");
     }
 }
コード例 #4
0
 public void Initialise()
 {
     if (ReplayKitManager.IsRecordingAPIAvailable())
     {
         ReplayKitManager.Initialise();
     }
     else
     {
         Debug.LogError("Recording API not available!");
     }
 }
コード例 #5
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.");
     }
 }
コード例 #6
0
 public void DiscardRecording()
 {
     ReplayKitManager.Discard();
 }
コード例 #7
0
 public void StopRecording()
 {
     ReplayKitManager.StopRecording();
 }
コード例 #8
0
        public void GetPreviewFilePath()
        {
            string filePath = ReplayKitManager.GetPreviewFilePath();

            SetStatus("Recorded video preview file path : " + filePath);
        }
コード例 #9
0
        public void IsRecording()
        {
            bool isRecording = ReplayKitManager.IsRecording();

            SetStatus("Is currently recording : " + isRecording);
        }
コード例 #10
0
        public void IsPreviewAvailable()
        {
            bool isPreviewAvailable = ReplayKitManager.IsPreviewAvailable();

            SetStatus("Is preview available : " + isPreviewAvailable);
        }
コード例 #11
0
        public void IsRecordingAPIAvailable()
        {
            bool isAvailable = ReplayKitManager.IsRecordingAPIAvailable();

            SetStatus("Recording API Available : " + isAvailable);
        }
コード例 #12
0
 public void Initialise()
 {
     ReplayKitManager.Initialise();
 }
コード例 #13
0
        public void Discard()
        {
            bool success = ReplayKitManager.Discard();

            SetStatus("Discard  Recording: " + (success ? "Success" : "Failed"));
        }
コード例 #14
0
        public void Preview()
        {
            bool success = ReplayKitManager.Preview();

            SetStatus("Preview  Recording: " + (success ? "Success" : "Failed"));
        }
コード例 #15
0
 public void StartRecording()
 {
     ReplayKitManager.StartRecording(enableMicrophone: true);
 }