Android built-in default player in app / event

I would like to know if the default player can be embedded in one of my actions. Or at least you can insert a section that has a play / pause button and an audio track search bar.

The reason I would like to embed it, and not open it in a new intention (for example:

Intent audioActivity = new Intent(Intent.ACTION_VIEW);
audioActivity.setDataAndType(Uri.parse(getAudioURL()), "audio/*");
startActivity(audioActivity);

)

is that I want users to be able to read some content in the current action while listening to audio. I was able to use the progress bar, which is updated based on progress in the audio track, but it doesn’t look very good, and I prefer the default look of the player. I know that video / audio players by default are not well documented, but if at all possible, I would like to know. Thank!

+3
source share
2 answers

Hi, I would like to know if the default player can be embedded in one of my actions.

No, sorry.

-, , " " . " ".

-, " ", Android .

, , , / .

, . . .

+3

Source: https://habr.com/ru/post/1791356/


All Articles