Joel Benway
Posts: 0
Joined: Tue Jul 29, 2014 8:58 pm

jquery not working

I had implemented a j-query script to record. It was working for me, but now all of a sudden it's not....any suggestions?

{
createMedia(function(){
status = "recording";
mediaVar.startRecord();

Code: Select all

         },onStatusChange); 
     } 

     function createMedia(onMediaCreated, mediaStatusCallback){ 
         if (mediaVar != null) { 
             onMediaCreated(); 
             return; 
         } 

         if (typeof mediaStatusCallback == 'undefined')  
             mediaStatusCallback = null; 

         if (isIOS) { 
             //first create the file 
             window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem){ 
                 fileSystem.root.getFile(recordFileName, { 
                     create: true, 
                     exclusive: false 
                 }, function(fileEntry){ 
                     log("File " + recordFileName + " created at " + fileEntry.fullPath); 
                     mediaVar = new Media(fileEntry.fullPath, function(){ 
                         log("Media created successfully"); 
                     }, onError, mediaStatusCallback); //of new Media 
                     onMediaCreated(); 
                 }, onError); //of getFile 
             }, onError); //of requestFileSystem 
         } else //it's Android 
         { 
             mediaVar = new Media(recordFileName, function(){ 
                 log("Media created successfully"); 
             }, onError, mediaStatusCallback);  
             onMediaCreated(); 
         } 
     }
Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

jquery not working

Hi Joel,

Please check whether you've made any changes in the source of your project before and now it's not working.

Also please clarify how do you testing this code, what device and OS version you're using?

If this possible to you to share your app with us and describe the steps to reproduce?

Joel Benway
Posts: 0
Joined: Tue Jul 29, 2014 8:58 pm

jquery not working

I'm testing using the ios simulator on xcode. I can add you to the project if you want....or I can send you the xcode. please let me know

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

jquery not working

Thanks Joel, you can add us to your project in Appery.io - we'll take a look.
It's better to test such code on real device, as its interference with device features, to debug it you can use Winre (http://devcenter.appery.io/documentat...) or Apple Web inspector.

Return to “Issues”