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!
aveyD source
share