You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Geoffrey Bauduin (JIRA)" <ji...@apache.org> on 2016/02/11 16:03:18 UTC
[jira] [Created] (CB-10593) captureVideo: Android 6.0.1 camera
crashes if video exceeds duration
Geoffrey Bauduin created CB-10593:
-------------------------------------
Summary: captureVideo: Android 6.0.1 camera crashes if video exceeds duration
Key: CB-10593
URL: https://issues.apache.org/jira/browse/CB-10593
Project: Apache Cordova
Issue Type: Bug
Components: Plugin Media Capture
Environment: cordova-android@4.1.1
Reporter: Geoffrey Bauduin
I use this plugin in order to capture a video that can last, at most, 10 seconds.
{code:title=camera.ts|borderStyle=solid}
this.window["navigator"]["device"]["capture"].captureVideo((data:any) => {
if (data.length > 0) {
observer.next(data[0].fullPath);
} else {
observer.error("Cannot find recorded video");
}
}, (error:string) => {
console.error("Cannot get video from camera:", error);
observer.error(error);
}, {
duration: 10,
limit: 1,
quality: 0
});
{code}
Everything is working as intended when I stop the video by myself before the 10 seconds, but if my video exceeds 10 seconds, the camera application crashes.
--
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