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?