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: [email protected]
            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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to