Skip to content

Commit e4e30ae

Browse files
committed
CB-9487: Don't update position when getting amplitude
1 parent 16729db commit e4e30ae

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ios/CDVSound.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -864,9 +864,6 @@ - (void)getCurrentAmplitudeAudio:(CDVInvokedUrlCommand*)command
864864
}
865865
}
866866
CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDouble:amplitude];
867-
868-
NSString* jsString = [NSString stringWithFormat:@"%@(\"%@\",%d,%.3f);", @"cordova.require('cordova-plugin-media.Media').onStatus", mediaId, MEDIA_POSITION, amplitude];
869-
[self.commandDelegate evalJs:jsString];
870867
[self.commandDelegate sendPluginResult:result callbackId:callbackId];
871868
}
872869

0 commit comments

Comments
 (0)