Ejemplo n.º 1
0
 void Update()
 {
     // Enumerate touches
     foreach (Touch t in Input.touches)
     {
         // Check for double tap
         if (t.phase == TouchPhase.Ended && t.tapCount == 2)
         {
             // Toggle recording
             if (NatCam.IsRecording)
             {
                 NatCam.StopRecording();
             }
             else
             {
                 NatCam.StartRecording(OnVideoSave);
             }
         }
     }
     // Set IsRecording property on RecordingIcon
     if (recordingIcon)
     {
         recordingIcon.IsRecording = NatCam.IsRecording;
     }
 }
Ejemplo n.º 2
0
        void Update()
        {
            if (a == true)
            {
                NatCam.StartRecording(OnVideoSave);
                timeRemaining -= Time.deltaTime;
                if (timeRemaining <= 0)
                {
                    NatCam.StopRecording(); a = false;
                }
            }
            else
            {
                NatCam.StopRecording();
            }

            if (recordingIcon)
            {
                recordingIcon.IsRecording = NatCam.IsRecording;
            }
        }
Ejemplo n.º 3
0
 public void StartRecording()
 {
     // Start recording
     NatCam.StartRecording(Configuration.Default, OnVideo);
 }