Ejemplo n.º 1
0
 /// <summary>
 /// Opens the native gallery for a video and returns its path to the specified callback.
 /// </summary>
 public static void PickVideo(VideoResultHandler callback)
 {
     if (I == null)
     {
         RenLog.Log(LogLevel.Warning, "GalleryPicker.PickVideo - You must initialize this module first!");
         return;
     }
     I.onVideoResult = callback;
     I.galleryPlugin.PickVideo();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Takes a new video and saves at specified file path.
        /// On iOS, the photo will be saved to the library along with documents directory,
        /// as you can't directly access files in the photo library.
        /// </summary>
        public static void TakeVideo(SaveOption saveOptions, VideoOption videoOptions, VideoResultHandler callback)
        {
            if (I == null)
            {
                RenLog.Log(LogLevel.Warning, "NativeCamera.TakePhoto - You must initialize this module first!");
                return;
            }
            if (saveOptions == null)
            {
                saveOptions = new SaveOption();
            }
            if (videoOptions == null)
            {
                videoOptions = new VideoOption();
            }

            I.onVideoResult = callback;
            I.camPlugin.TakeVideo(saveOptions, videoOptions);
        }