diff --git a/framework/src/org/apache/cordova/AudioPlayer.java b/framework/src/org/apache/cordova/AudioPlayer.java index 01707280..09e0311c 100644 --- a/framework/src/org/apache/cordova/AudioPlayer.java +++ b/framework/src/org/apache/cordova/AudioPlayer.java @@ -537,6 +537,7 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener, On if (fp.exists()) { FileInputStream fileInputStream = new FileInputStream(file); this.player.setDataSource(fileInputStream.getFD()); + fileInputStream.close(); } else { this.player.setDataSource("/sdcard/" + file);