You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jonas Eikli (JIRA)" <ji...@apache.org> on 2015/01/22 13:35:35 UTC

[jira] [Comment Edited] (CB-7771) "media-capture" bugs with WP8.1

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

Jonas Eikli edited comment on CB-7771 at 1/22/15 12:34 PM:
-----------------------------------------------------------

I found a thread on stackoverflow regarding a similar issue for another plugin: http://stackoverflow.com/questions/26130837/cordova-wp8-datepickerplugin-callback-not-found

They describe a workaround for the issue which can be adapted to this issue. In the file {{platforms\wp8\cordovalib\Commands\BaseCommand.cs}} change the DetachHandlers method from:
{code:none}
foreach (string callbackId in new List<string>(ResultHandlers.Keys))
{
       RemoveResultHandler(callbackId);
}
{code}

to 
{code:none}
foreach (string callbackId in new List<string>(ResultHandlers.Keys))
{
        if (!callbackId.Contains("Capture"))
        {
            RemoveResultHandler(callbackId);
        }
}
{code}



was (Author: tittelspore):
I found a thread on stackexchange regarding a similar issue for another plugin: http://stackoverflow.com/questions/26130837/cordova-wp8-datepickerplugin-callback-not-found

They describe a workaround for the issue which can be adapted to this issue. In the file {{platforms\wp8\cordovalib\Commands\BaseCommand.cs}} change the DetachHandlers method from:
{code:none}
foreach (string callbackId in new List<string>(ResultHandlers.Keys))
{
       RemoveResultHandler(callbackId);
}
{code}

to 
{code:none}
foreach (string callbackId in new List<string>(ResultHandlers.Keys))
{
        if (!callbackId.Contains("Capture"))
        {
            RemoveResultHandler(callbackId);
        }
}
{code}


> "media-capture" bugs with WP8.1
> -------------------------------
>
>                 Key: CB-7771
>                 URL: https://issues.apache.org/jira/browse/CB-7771
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 3.6.3
>         Environment: I using WP8.1 with phonegap 3.6.3 and all latest core plugin...
>            Reporter: Colin Bau
>            Assignee: Jesse MacFadyen
>              Labels: media-capture
>
> this is my original screenshot
> http://www.littlebau.com/20141013_wp/01.png
> issue 1
> when I execute
> navigator.device.capture.captureAudio(captureSuccess, captureError, options);
> it will show this
> http://www.littlebau.com/20141013_wp/02.png
> if I press "start",the duration will run,but if I press "take"...nothing real happened
> if I press the hardware "backbutton",but it will not trigger the "captureError" callback
> issue 2
> when I execute
> navigator.device.capture.captureImage(captureSuccess, captureError, options);
> it will show the user interface to do some function
> but...
> if I press the "backbutton",it although trigger the "captureError" callback,but get the "error.code" => undefined
> issue 3
> when I execute
> navigator.device.capture.captureVideo(captureSuccess, captureError, options);
> it will show the user interface to do some function
> http://www.littlebau.com/20141013_wp/03.png
> but...
> if I press "record" button,sometimes it will become black screen
> http://www.littlebau.com/20141013_wp/04.png
> and when change back to my app,my webview become so strang and very small (immediately press the "backbutton" will cause the same situation)
> http://www.littlebau.com/20141013_wp/05.png



--
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