Beispiel #1
0
 /// <summary>
 /// Start recording a video with no audio
 /// </summary>
 /// <param name="configuration">Configuration for recording</param>
 /// <param name="saveCallback">Callback to be invoked when the video is saved</param>
 public static void StartRecording(Configuration configuration, SaveCallback saveCallback)
 {
     if (IsRecording)
     {
         Util.LogError("Cannot start recording because NatCorder is already recording");
         return;
     }
     if (saveCallback == null)
     {
         Util.LogError("Cannot record video without callback");
         return;
     }
     Implementation.StartRecording(configuration, saveCallback, null);
 }
Beispiel #2
0
 public static void StartRecording(Container container, VideoFormat videoFormat, AudioFormat audioFormat, RecordingCallback recordingCallback)
 {
     if (IsRecording)
     {
         Debug.LogError("NatCorder Error: Cannot start recording because NatCorder is already recording");
         return;
     }
     if (recordingCallback == null)
     {
         Debug.LogError("NatCorder Error: Cannot record video without callback");
         return;
     }
     Implementation.StartRecording(container, videoFormat, audioFormat, recordingCallback);
 }
Beispiel #3
0
 public static void StartRecording(Configuration configuration, VideoCallback videoCallback, IAudioSource audioSource = null)
 {
     if (IsRecording)
     {
         Debug.LogError("NatCorder Error: Cannot start recording because NatCorder is already recording");
         return;
     }
     if (videoCallback == null)
     {
         Debug.LogError("NatCorder Error: Cannot record video without callback");
         return;
     }
     Implementation.StartRecording(configuration, videoCallback, audioSource);
 }