cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Victor Maluf (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (CB-10207) Support for Android Marshmallow
Date Wed, 16 Dec 2015 21:54:46 GMT

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

Paulo Victor Maluf updated CB-10207:
------------------------------------
    Comment: was deleted

(was: Sorry, i just update the description.)

> Support for Android Marshmallow
> -------------------------------
>
>                 Key: CB-10207
>                 URL: https://issues.apache.org/jira/browse/CB-10207
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin Media Capture
>            Reporter: Paulo Victor Maluf
>              Labels: features, patch
>
> By calling the captureAudio on Android Marshmallow(6.0) the audio recorder is not opened.
> My code: 
> {code}
>  $scope.captureAudio = function() {
>     var options = { limit: 1, duration: 10 };
>     console.log("captureAudio");
>     $cordovaCapture.captureAudio(options).then(function(mediaFiles) {
>       console.log("Success! Audio data is here");
>       var i, path, name, mime, len;
>       for (i = 0, len = mediaFiles.length; i < len; i += 1) {
>           path = mediaFiles[i].fullPath;
>           name = mediaFiles[i].name;
>           mime = mediaFiles[i].type;
>           console.log("Loop: " + i + " Path: " + path + " Name: " + name + " Mime: "
+ mime);          
>       }
>     },
>     function(err){
>       switch (err) {
>         case CaptureError.CAPTURE_NO_MEDIA_FILES:
>           navigator.notification.alert('no media files', null);
>           console.log('no media files');
>           break;
>         case CaptureError.CAPTURE_INTERNAL_ERR:
>           navigator.notification.alert('internal err', null);
>           console.log('internal err');
>           break;
>         case CaptureError.CAPTURE_INVALID_ARGUMENT:
>           navigator.notification.alert('invalid arg', null);
>           console.log('invalid arg');
>           break;
>         case CaptureError.CAPTURE_NOT_SUPPORTED:
>           navigator.notification.alert('not supported', null);
>           console.log('not supported');
>           break;
>       }
>     });
>   };
> {code}
> The same code works fine on Android Lollipop(5.0). 



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