S
S
Slavik122019-03-31 23:27:55
Java
Slavik12, 2019-03-31 23:27:55

Checking for audio completion in Android?

First off, I'm new to Android. I need to make it so that after the end of the audio track, a text is displayed that the audio track has ended. I figured out playback using SoundPool, but I did not find in the documentation how to find out whether the audio stream has ended or not. So I want to know if there is any function or it can be implemented using another class. Thanks in advance)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2019-04-01
@zagayevskiy

As far as I understand, no, you can't find out. Judging by the API description, this craft is needed to play some short sounds (perhaps one after the other, using prioritization).
You can use MediaPlayer for this. It's definitely possible there .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question