A MediaController is a view containing controls for a MediaPlayer. Typically contains the buttons like "Play/Pause", "Rewind", "Fast Forward" and a progress slider. It takes care of synchronizing the controls with the state of the MediaPlayer.
Questions tagged [mediacontroller]
303 questions
56
votes
2 answers
how to create custom UI for android MediaController
I want to customize the controls in the MediaController for my video player.
I want to swap out the image for the play button, change the skin, change the color, ect.
Is there a known way of doing this?
Thanks

user1681001
- 632
- 2
- 7
- 7
35
votes
2 answers
ExoPlayer and start / pause / seekTo commands
I am trying to use ExoPlayer, as opposed to MediaPlayer and I can't seem to figure it out...
MediaPlayer has .start() / .pause() commands... and I can just seekTo(1287) and it automatically starts playing...
How do I do this with ExoPlayer? I have…

DeNitE Appz
- 1,003
- 2
- 12
- 18
32
votes
2 answers
Event for VideoView playback state or MediaController play/pause
I cant seem to find an event that listens for playback state. I am mostly interested in the play/pause state. I am using MediaController which has a Play/Pause button, but I have a secondary button that also controls Play/Pause. Using my custom…

Ronnie
- 11,138
- 21
- 78
- 140
31
votes
5 answers
Android back button and MediaController
I know how to take control of the back button. I have a VideoView embedded in a FrameLayout. My question is when the video pops up, the video controls are present for a few seconds. Hitting the back button while they are visible hides the video…

Ronnie
- 11,138
- 21
- 78
- 140
27
votes
4 answers
How to put media controller button on notification bar?
I am creating a music player application. I want to show the media controller on notification bar while my application is running in background. It looks like Google player.
How to do this?

Leap Bun
- 2,265
- 5
- 28
- 44
24
votes
10 answers
MediaController always show on Android
I am using mediacontroller in my app, but it shows only for 3 seconds. I have searched a lot, but in every document I see only the show function, set time out, but it has no effect. How can I always show mediacontroller?
I have tested show(0), but…

Bytecode
- 6,551
- 16
- 54
- 101
23
votes
3 answers
Custom UI on exoplayer sample
** I really need help if you don't know anything don't give me a negative point :| if something bother you comment**
I want to write custom UI for my player in Exoplayer(change button of pause play or add new buttons like player speed next and etc)…

Siavash Abdoli
- 1,852
- 3
- 22
- 38
17
votes
3 answers
How to re-position the MediaController?
I have been using mediaController for my app.
By default, the Media Controller is displayed at the bottom of the screen.
Is there a way to display the Media Controller in the middle of the screen instead?

Andro Selva
- 53,910
- 52
- 193
- 240
12
votes
4 answers
MediaController Positioning
I am using VideoView to show play a local mp4 and i am using MediaController as well. The media control bar is not displaying under my video clip but in the middle of the screen. I used setAnchorView to attach it to my videoView but that had no…

newdev
- 1,363
- 1
- 12
- 18
12
votes
2 answers
Android - MediaController of VideoView within dialog appears behind the dialog
I have a VideoView inside a custom dialog, and I am creating a media controller for the VideoView on the fly and assigning it to the VideoView in the code, however the controller doesn't actually appear over the video - it appears behind the dialog!…

AndroidNoob
- 2,771
- 2
- 40
- 53
11
votes
1 answer
Android back button not working while playing video in VideoView
Android back button is not working while playing the video in VideoView. But it works before playing the video. I am using a custom MediaController for VideoView. I tried using dispatchKeyEvent, its not working.
Code of Activity that am using…

Anooj Krishnan G
- 849
- 7
- 25
11
votes
2 answers
Fix Mediacontroller position in Scrollview
I have a media controller in my android activity which uses setAnchorView to set the initial position. From what I have read if the media controller is in a scrollview the window of the media controller simply follows the scrolling which is…

David
- 111
- 4
11
votes
3 answers
MediaController Positioning - bind to VideoView
There have been a lot of discussions about how to position a MediaController and most answers are to use the setAnchorView-Method. At the first glance this solution seems to work but in my case it doesn't.
According to this Post setAnchorView only…

FranBran
- 1,017
- 2
- 11
- 32
11
votes
2 answers
Android 4.1 - RTSP using VideoView and MediaController
Developing a simple app to play a RTSP stream on Android 4.1, but unable to do so
Update
I am able Able to play if I use BigBuckBunny_115k.mov
Uri video = Uri.parse("rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov");
BUT
I tried with lot of…

Rohit
- 6,941
- 17
- 58
- 102
10
votes
2 answers
How to use a Seekbar in android as a seekBar as well as a progressBar simultaneously?
I intend to write a custom media controller for my app. I was planning to use seekbar to do both seeking and showing progress. Trying to implement this.
Does anyone have such implementation or am I on the wrong path ?

Prasad Korhale
- 577
- 1
- 5
- 15