cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Kotikov (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-10701) Cordova Media Capture Plugin Video capture results in 0 'duration'
Date Wed, 26 Oct 2016 13:12:58 GMT

     [ https://issues.apache.org/jira/browse/CB-10701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vladimir Kotikov resolved CB-10701.
-----------------------------------
    Resolution: Fixed

Fixed in https://github.com/apache/cordova-plugin-media-capture/pull/53

> Cordova Media Capture Plugin Video capture results in 0 'duration'
> ------------------------------------------------------------------
>
>                 Key: CB-10701
>                 URL: https://issues.apache.org/jira/browse/CB-10701
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media Capture
>         Environment: Intel XDK
>            Reporter: Ivan
>              Labels: triaged
>
> 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?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message