You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2016/10/10 13:51:20 UTC

[jira] [Commented] (CB-10593) captureVideo: Android 6.0.1 camera crashes if video exceeds duration

    [ https://issues.apache.org/jira/browse/CB-10593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15562370#comment-15562370 ] 

Vladimir Kotikov commented on CB-10593:
---------------------------------------

[~GeoffreyB], could you please provide more details about the issue. Specifically the most interesting are plugin and cordova versions ({{cordova -v && cordova plugin ls}}) and the device model and OS version. Does this happens for you every time when you stop the video? Does this reproduce on other devices?

Also it'd be great if you could provide a log output from device. To get an error log run {{. platforms/android/cordova/log}} in terminal from your cordova app directory.

> 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
>              Labels: Android, android, wfc
>
> 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