Q
Q
qqweer2020-09-23 20:53:37
Android
qqweer, 2020-09-23 20:53:37

(Android) Slow down MediaPlayer during Timer tick?

I'm working on the player, it remains to do only the seekbar which is updated every 1 second and shows the time. Everything works, there is only one problem. When 1 tick passes, the sound is interrupted, resp. listening is impossible.
I tried both through Timer().schedule() and through Handler().postDelayed(), as a result, I came to the conclusion that other data is updated normally (values ​​​​in the text view), but when the data is updated it is in the GG sik bar. I count on your support, it is desirable to attach a piece of code, thanks for your time;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2020-09-23
@402d

https://github.com/Dimowner/AudioRecorder
see how people do it.
the player plays in a separate background thread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question