incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-1479) Cordova 2.1 Capture Problem
Date Mon, 17 Sep 2012 22:41:08 GMT

     [ https://issues.apache.org/jira/browse/CB-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah updated CB-1479:
---------------------------------

    Fix Version/s: 2.2.0
    
> Cordova 2.1 Capture Problem
> ---------------------------
>
>                 Key: CB-1479
>                 URL: https://issues.apache.org/jira/browse/CB-1479
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>         Environment: iOS 5.1.1, Cordova 2.1.0, iPad3
>            Reporter: Klaus Schmidt
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> Hi,
> I've updated my app from cordova 2.0.0 to the actual sourcecode of cordova 2.1.0.
> The capturing of audio, video and image, which is working fine in 2.0.0, doesn't work
any more. After start capturing with the following code
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback);
> directly I get the following error:
> 2012-09-14 17:37:35.352 Test[8922:707] -[NSNull objectForKey:]: unrecognized selector
sent to instance 0x3f6695e0
> 2012-09-14 17:37:35.354 Test[8922:707] *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[NSNull objectForKey:]: unrecognized selector sent
to instance 0x3f6695e0'
> *** First throw call stack:
> (0x35b6588f 0x33789259 0x35b68a9b 0x35b67915 0x35ac2650 0x497f3 0x68d55 0x686f7 0x689a5
0x35ac41fb 0x34f94747 0x35b39ad3 0x35b3929f 0x35b38045 0x35abb4a5 0x35abb36d 0x33856439 0x33293cd5
0x39e9 0x3980)
> terminate called throwing an exception(gdb) 
> Solution: I found out, that divergenting from the documenation, the "CDVCapture.m" for
iOS capturing has not an optional parameter "options" in the call of .captureXY(success,error,[options]),
the parameter "options" has now to be present, otherwise the error above occurs.
> So, changing my call to be called with a blank options object, it works:
> navigator.device.capture.captureAudio(processMediaFiles, errorCallback,{});
> Can you please change the iOS code for "CDVCapture.m" or otherwise change the documentation
for the options-parameter?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message