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
2
votes
0 answers
Media controller not updating after getting a phone call
After finishing the tutorials (https://code.tutsplus.com/tutorials/create-a-music-player-on-android-user-controls--mobile-22787) on how to create a basic music player Android app as well as addressing most of the bugs there ranging from properly…

DaveNOTDavid
- 1,753
- 5
- 19
- 37
2
votes
1 answer
How to display MediaController below the Navigation drawer
I am having a display issue where the mediaController is floating on top of the navigation drawer (see image), when I click the navDrawer while the controller is visible.
I like to display the mediaController below the navDrawer instead.
according…

Angel Koh
- 12,479
- 7
- 64
- 91
2
votes
1 answer
Android app not recognising volume key presses when showing android.widget.MediaController
I cannot get an Android app (running on Android 6.0) to respond to volume key presses when the android.widget.MediaController is showing.
The media controller is shown by a fragment when a button in the fragment is tapped.
The activity that has…

Geoff S
- 175
- 2
- 13
2
votes
1 answer
MediaController for VideoView on Custom Dialog not shown - Android
I am trying to show a mediacontroller for a videoview which exist on a custom dialog. But somehow the mediacontroller does not appear. I have seen few questions related to this, but havent found any suitable answer for it yet.
Is it happening…

rahul
- 1,095
- 8
- 22
2
votes
1 answer
Android mediaplayer reinitializes on screen rotation
I am streaming/playing already downloaded video in the VideoView. When I rotate the screen all the objects are reinitialized so that the video is played from the beginning or if get current position and set the position on screen rotation the video…

shine_joseph
- 2,922
- 4
- 22
- 44
2
votes
2 answers
Disable seekforward and seekbackward of mediacontroller android?
I am playing a video from url and I want to disable the seekbar tracking of the video. How can it be done.
This my code:
videoUrl = "http://download.itcuties.com/teaser/itcuties-teaser-480.mp4";
videoview.setVideoPath(videoUrl);
…

WISHY
- 11,067
- 25
- 105
- 197
2
votes
1 answer
how to hide fragment when a video in another fragment is full view
I have an Activity that contains two fragments beside each other. One of the fragment is a List Fragment and the other one contains surface view for a video.
I've implemented a custom controller to make the video in full screen but when the full…

user1673892
- 409
- 2
- 5
- 17
2
votes
0 answers
Android Media Controller FullScreen Button
I have managed to follow the tutorial from this link: http://www.brightec.co.uk/ideas/custom-android-media-controller
The only thing new that I have added is this block of code in the VideoPlayerAcitivity:
@Override
public void toggleFullScreen()…

Jehan Dastoor
- 647
- 1
- 8
- 15
2
votes
1 answer
How to get VideoView getcurrentPosition and set seekTo desire position not working properly?
I am working with one application that have multi language supported with same video. whenever I switch from English to Hindi or vice versa. It's set seekTo as per got current position But I am getting variation, it's not as I want from exact…

Mukesh Parmar
- 941
- 1
- 15
- 25
2
votes
1 answer
How to pause Android VideoView after 4 seconds of playing
I Want to pause my video play after 4 seconds of playing, then I want to pop up a message to the user. Can someone point me in the right direct how to pause the video after 4 seconds please. Thanks
V2 Implemented @gogothebee feedback {Now the video…

Cho Hee
- 165
- 1
- 11
2
votes
1 answer
Android - Where to implement onBufferingUpdate(...) using VideoView and MediaController
I am confused by the MediaController and VideoView APIs in Android.
I am using it to stream videos through HTTP, which is working fine. Only problem is that it stops for buffering from time to time. I now want to get notified whenever the video…

nburk
- 22,409
- 18
- 87
- 132
2
votes
3 answers
MediaController doesn't work
My layout that contains videoView

Justin
- 4,400
- 2
- 32
- 36
2
votes
0 answers
playing videoview in tab controls not working and cause force close
Everything works fine, but in the third tab I have a videoview. It plays the video until I click on the screen to use the mediacontroller and then the app states, "Unfortunatetly 'APP NAME' has stopped" I have searched for nearly two weeks, but…

user1716451
- 21
- 1
2
votes
0 answers
MediaController blocking other ui elements
I am using a ConstantAnchorMediaController as posted in this answer in order to limit my media controls to a small window where I play my videos. I also use a little padding since the controls somehow seem to be attached to the bottom of the…

M Rajoy
- 4,028
- 14
- 54
- 111
2
votes
0 answers
ActionBar touch events being overriden by MediaController
I'm building an app with custom MediaController and VideoView (both using 99% of the original android code) to display my videos. When the activity is in landscape i set the actionbar (using actionbarsherlock 4.2.0) to overlay the VideoView just…

xlar8or
- 601
- 9
- 18