Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
Issue is seen on almost all phones with Android 6.0.1 or above except a Samsung S6 Edge running 6.0.1;
Description
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".
index.js
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 } ); }
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