title: Unable to get cordovaCapture to work using ngCordova on ionic
body: <p>I am unable to get cordovaCapture.captureVideo to work. Using cordovaCamera lets me use the camera to take photos and choose photos from the library without any problems but I am trying to to use cordovaCapture to use take a video on iOS, I would also like to get a thumbnail or image preview of the video to show on the view once the video is taken. </p>
  
  <p>I have included the code below which uses both cordovaCamera and cordovaCapture. I have followed the examples on ngCordova website. </p>
  
  <pre><code>.controller("CameraController", function($scope, $cordovaCamera, $cordovaCapture) {
    $scope.takePhoto = function () {
      var options = {
        quality: 75,
        cameraDirection: Camera.Direction.FRONT,
        destinationType: Camera.DestinationType.DATA_URL,
        sourceType: Camera.PictureSourceType.CAMERA,
        allowEdit: true,
        encodingType: Camera.EncodingType.JPEG,
        popoverOptions: CameraPopoverOptions,
        saveToPhotoAlbum: false
      };
  
      $cordovaCamera.getPicture(options).then(function (imageData) {
          $scope.imgURI = "data:image/jpeg;base64," + imageData;
      }, function (err) {
          // An error occured. Show a message to the user
      });
    }
  
    $scope.choosePhoto = function () {
      var options = {
        quality: 75,
        destinationType: Camera.DestinationType.DATA_URL,
        sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
        allowEdit: true,
        encodingType: Camera.EncodingType.JPEG,
        popoverOptions: CameraPopoverOptions,
        saveToPhotoAlbum: false
      };
  
      $cordovaCamera.getPicture(options).then(function (imageData) {
          $scope.imgURI = "data:image/jpeg;base64," + imageData;
      }, function (err) {
          // An error occured. Show a message to the user
      });
    }
  
    $scope.captureVideo = function() {
      var options = { limit: 1, duration: 15 };
  
      $cordovaCapture.captureVideo(options).then(function(videoData) {
        // Video data
      }, function(err) {
        // An error occurred. Show a message to the user
      });
    }
  })
  </code></pre>