Is the available VideoPlayer / AudioPlayer / MediaPlayer GUI / UI available?

I am looking for a user interface for MediaPlayer that should be able to play videos as well as audio files.
In addition, he needs the following things (nothing unusual):

  • TextView for playing time
  • Progress bar to visualize progress
  • Play / Pause / Stop Buttons
  • NO to play the playlist, the player will play only one item (so I do not need the next / previous buttons).

It sounds very similar to the standard Android> = 2.0 audio player. Of course, I could try to find its source code, but this will require a tedious check of the entire source. I am just asking for a more efficient way.

Thanks in advance,
Steff

+3
source share
1 answer

Ok, I'm a real moron. Since the Demos APIs do not call mVideoView.start();I thought I was not working. So the answer to my stupid question is: VideoView , which allows you to play videos as well as audio files. To manage these files, just add a MediaController , call mediaController.setMediaPlayer(mediaPlayer);, and you'll be fine. Just like that ...

+3
source

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


All Articles