Skip to content

Commit f3b0183

Browse files
sunnylqmzmxv
authored andcommitted
Reset player before release (#535)
1 parent f89b9fd commit f3b0183

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/com/zmxv/RNSound/RNSoundModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ public void reset(final Double key) {
306306
public void release(final Double key) {
307307
MediaPlayer player = this.playerPool.get(key);
308308
if (player != null) {
309+
player.reset();
309310
player.release();
310311
this.playerPool.remove(key);
311312

0 commit comments

Comments
 (0)