Skip to content

Commit

Permalink
COLLECT-198: Reset the media player before setting the data source.
Browse files Browse the repository at this point in the history
  • Loading branch information
nribeka committed Oct 5, 2016
1 parent 017c258 commit 89b249d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public void playAudio(Context c) {
}

try {
mPlayer.reset();
mPlayer.setDataSource(audioFilename);
mPlayer.prepare();
mPlayer.start();
Expand Down

0 comments on commit 89b249d

Please sign in to comment.