Topic
  • 5 replies
  • Latest Post - ‏2012-05-21T02:41:35Z by SystemAdmin
SystemAdmin
SystemAdmin
570 Posts

Pinned topic Working error while use captureAudio phonegap API build on ios

‏2012-05-18T09:40:18Z |
I have problem when use worklight to make a application to record audio. My application will be show black screen. I use following code to record audio


navigator.device.capture.captureAudio(successFunc, errorFunc,
{limit:1
})


Please help me.

Thank in advance.
  • IdanAdar
    IdanAdar
    288 Posts

    Re: Working error while use captureAudio phonegap API build on ios

    ‏2012-05-19T10:49:23Z  
    What is the Worklight Server and Studio version that you are using?
    Make sure you closely follow PhoneGap's API; try first with a minimized testcase and then incorporate it into your Worklight application.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Working error while use captureAudio phonegap API build on ios

    ‏2012-05-19T22:37:20Z  
    My worklight server version : 4.2.1.1183.
    I tried PhoneGap's api and make a build for ios and it work for me. But PhoneGap integrated in Worklight can't load Recorder Screen. Please see the image to know exactly prolem
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Working error while use captureAudio phonegap API build on ios

    ‏2012-05-20T07:39:25Z  
    Hi.

    The phoneGap API for captureAudio works on Worklight.
    The Recorder Screen in your example do not come by default. You need to copy it's source (HTML, CSS, images and JavaScript, if you have it) from the example to the Worklight project.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Working error while use captureAudio phonegap API build on ios

    ‏2012-05-21T01:26:14Z  
    Please let me know the url.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Working error while use captureAudio phonegap API build on ios

    ‏2012-05-21T02:41:35Z  
    I only use one line of code to show it, Have no more css, html,js.