You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2016/12/13 23:45:58 UTC

[jira] [Updated] (CB-11914) media-capture plugin captureVideo doesn't restrict video to specified duration (Android)

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

Joe Bowser updated CB-11914:
----------------------------
         Labels: Android  (was: )
    Component/s:     (was: Android)

> media-capture plugin captureVideo doesn't restrict video to specified duration (Android)
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-11914
>                 URL: https://issues.apache.org/jira/browse/CB-11914
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media Capture
>         Environment: Issue is seen on almost all phones with Android 6.0.1 or above except a Samsung S6 Edge running 6.0.1;
>            Reporter: Prabhu Sengal
>              Labels: Android
>
> The following code fails to end video capture after 10 seconds on phones running Android 6.0.1 or above. In all other versions, the video capture is ended in 10 seconds with message "Maximum recording time reached".
> {code:title=index.js|borderStyle=solid}
>     captureVideo: function() {
>         navigator.device.capture.captureVideo(
>             function(mediaFiles) {
>                 // success callback
>                 var i, path, len;
>                 for (i = 0, len = mediaFiles.length; i < len; i += 1) {
>                     path = mediaFiles[i].fullPath;
>                     console.log("Success : " + path);
>                 }
>             },
>             function(error) {
>                 // error callback
>                 console.log('Error code: ' + error.code, null, 'Capture Error');
>             },
>             {
>                 limit: 1,
>                 quality: 0,
>                 duration: 10
>             }
>         );
>     }
> {code}
> I am on,
> phonegap@6.2.6 (tried with 6.3.3 - same behaviour)
> cordova@6.1.1
> cordova-plugin-media-capture@1.4.1-dev



--
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