I have a listview having audio voice in each row.I need to play the voice on click of seekbar & display progress in seekbar and pause the voice on click of seekbar again.Need to implement multiplay functionality also. I tried using media player,but it is taking some delay before playing the voice.It is because of MediaPlayer.prepare() call.How to overcome that 2-4 seconds delay..Please help me out.
Asked
Active
Viewed 1,539 times
0
-
have you tried using audiotrack() ?? – Rahul Baradia Jun 12 '13 at 05:35
-
Na I didn try..Could you pls suggest an example using audiotrack() – user1897321 Jun 12 '13 at 06:39
-
You have bug somewhere, prepare doesn't take 5 seconds, it's less than 1 second when playing local file. – Pointer Null Jun 12 '13 at 06:40
-
paste ur code .... prepare never take long time for local file from file system... – Pranav Jadav Jun 12 '13 at 08:58
-
try this http://stackoverflow.com/questions/7372813/android-audiotrack-playing-wav-file-getting-only-white-noise – Rahul Baradia Jun 14 '13 at 06:36
1 Answers
0
SoundPool is the best if not only way to do it, check this out and this tutorial Hope it helps.

Neron T
- 369
- 2
- 8