Prabhu Sengal created CB-11914:
----------------------------------
Summary: 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: Android
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
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,
[email protected] (tried with 6.3.3 - same behaviour)
[email protected]
[email protected]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]