Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10701

Cordova Media Capture Plugin Video capture results in 0 'duration'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Intel XDK

    Description

      I'm using Cordova Media Capture Plugin to capture video on android and iphone. Everything works fine but one thing and that is getting duration of video file.

      I'm using this code:

      navigator.device.capture.captureVideo(onSuccessVideo, onFailVideo,

      {limit:1, duration: 120}

      );

      function onSuccessVideo (mediaFiles) {
      mediaFiles[0].getFormatData(function(data) {
      var video_duration = data.duration;
      });
      }

      results for duration is zero on android and on iphone.

      Can you help me with this?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dexterp23 Ivan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: