Loading src/ios/CDVSound.m +2 −0 Changes for src/ios/CDVSound.m: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -561,6 +561,7 @@ if (recordingSuccess) { NSLog(@"Started recording audio sample '%@'", audioFile.resourcePath); jsString = [NSString stringWithFormat:@"%@(\"%@\",%d,%d);", @"cordova.require('org.apache.cordova.media.Media').onStatus", mediaId, MEDIA_STATE, MEDIA_RUNNING]; [self.commandDelegate evalJs:jsString]; } } Loading @@ -575,6 +576,7 @@ [self.avSession setActive:NO error:nil]; } jsString = [NSString stringWithFormat:@"%@(\"%@\",%d,%@);", @"cordova.require('org.apache.cordova.media.Media').onStatus", mediaId, MEDIA_ERROR, [self createMediaErrorWithCode:MEDIA_ERR_ABORTED message:errorMsg]]; [self.commandDelegate evalJs:jsString]; } }; Loading Loading
src/ios/CDVSound.m +2 −0 Changes for src/ios/CDVSound.m: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -561,6 +561,7 @@ if (recordingSuccess) { NSLog(@"Started recording audio sample '%@'", audioFile.resourcePath); jsString = [NSString stringWithFormat:@"%@(\"%@\",%d,%d);", @"cordova.require('org.apache.cordova.media.Media').onStatus", mediaId, MEDIA_STATE, MEDIA_RUNNING]; [self.commandDelegate evalJs:jsString]; } } Loading @@ -575,6 +576,7 @@ [self.avSession setActive:NO error:nil]; } jsString = [NSString stringWithFormat:@"%@(\"%@\",%d,%@);", @"cordova.require('org.apache.cordova.media.Media').onStatus", mediaId, MEDIA_ERROR, [self createMediaErrorWithCode:MEDIA_ERR_ABORTED message:errorMsg]]; [self.commandDelegate evalJs:jsString]; } }; Loading