diff --git a/src/ios/CDVSound.m b/src/ios/CDVSound.m index 92d5f917..e248c180 100644 --- a/src/ios/CDVSound.m +++ b/src/ios/CDVSound.m @@ -788,9 +788,6 @@ - (void)audioPlayerDidFinishPlaying:(AVAudioPlayer*)player successfully:(BOOL)fl // jsString = [NSString stringWithFormat: @"%@(\"%@\",%d,%d);", @"cordova.require('cordova-plugin-media.Media').onStatus", mediaId, MEDIA_ERROR, MEDIA_ERR_DECODE]; jsString = [NSString stringWithFormat:@"%@(\"%@\",%d,%@);", @"cordova.require('cordova-plugin-media.Media').onStatus", mediaId, MEDIA_ERROR, [self createMediaErrorWithCode:MEDIA_ERR_DECODE message:nil]]; } - if (self.avSession) { - [self.avSession setActive:NO error:nil]; - } [self.commandDelegate evalJs:jsString]; }