Skip to content

Commit

Permalink
Merge pull request #7591 from ashcoding/TIMOB-20140
Browse files Browse the repository at this point in the history
[TIMOB-20140] Android: Fix Streaming Audio on Android 6.0
  • Loading branch information
hieupham007 committed Dec 17, 2015
2 parents 14216ad + f88478a commit 6bfd40d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ public void setTime(int position)
}

try {
mp.seekTo(position);
if (mp.getDuration() >= 0) {
mp.seekTo(position);
}
} catch (IllegalStateException e) {
Log.w(TAG, "Error calling seekTo() in an incorrect state. Ignoring.");
}
Expand Down

0 comments on commit 6bfd40d

Please sign in to comment.