Beispiel #1
0
 void RecordVideo()
 {
     AGCamera.RecordVideo(videoFile =>
     {
         var msg = "Video file was recorded: " + videoFile;
         Debug.Log(msg);
         AGUIMisc.ShowToast(msg);
         image.sprite = SpriteFromTex2D(videoFile.LoadPreviewImage());
     },
                          error => AGUIMisc.ShowToast("Cancelled recording video file: " + error), true);
 }
        public void OnPickVideoFileCamera()
        {
            var generatePreviewImages = true;

            AGCamera.RecordVideo(videoFile =>
            {
                var msg = "Video file was recorded: " + videoFile;
                Debug.Log(msg);
                AGUIMisc.ShowToast(msg);
                image.sprite = SpriteFromTex2D(videoFile.LoadPreviewImage());
            },
                                 error => AGUIMisc.ShowToast("Cancelled recording video file: " + error), generatePreviewImages);
        }