You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/12/08 00:58:59 UTC

[jira] [Commented] (CB-10701) Cordova Media Capture Plugin Video capture results in 0 'duration'

    [ https://issues.apache.org/jira/browse/CB-10701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15730609#comment-15730609 ] 

ASF subversion and git services commented on CB-10701:
------------------------------------------------------

Commit 7e28e9cb1d60e54ecb1e29e61d38329d9c0e62f0 in cordova-plugin-media-capture's branch refs/heads/1.4.x from [~Nikita Matrosov]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media-capture.git;h=7e28e9c ]

CB-10701 CB-7117 android: Add manual test to check getting metadata


> 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