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
0
votes
1 answer
Add backbutton to MediaController
I have a Video-Activity with a MediaCrontroller like this
ctlr = new MediaController(this);
ctlr.setMediaPlayer(mVV);
mVV.setMediaController(ctlr);
ctlr.show();
how can i add a back Button to the MediaController? (The system…

wutzebaer
- 14,365
- 19
- 99
- 170
0
votes
0 answers
MediaController is not hidden automatically in android
I am implementing Video View in android and I am also using MediaController. When the video is playing media controller is not hidden after few seconds. This is my code,
layoutVideoFrame = (FrameLayout) findViewById(R.id.videoFrame);
…

chathura
- 3,362
- 6
- 41
- 68
0
votes
2 answers
How to play tapped List Item Song
I am using listview and at the bottom of the screen using media controllers, for the first when i do tap on any of the list item, that time i am able to play that song, but after that when i do tap on another list item, its not playing that music…

Sophie
- 2,594
- 10
- 41
- 75
0
votes
1 answer
Media Controller never show on Video View
I searched many topics with many same answers,
but looks like not worked for me & with many people also.
Create Custom Media Controller
public class CcMediaController extends MediaController {
ImageButton mCCBtn;
Context mContext;
AlertDialog…

Huy Tower
- 7,769
- 16
- 61
- 86
0
votes
1 answer
MediaController inside Fragment
I have an example of setting the Media Controller from Main Activity, but i expended my Activity with 3 fragments. Everything works except Media Controller is not displayed on my Fragment. How do I set the Media Controller with Fragment? This is…

Ђорђе Ђашић
- 121
- 14
0
votes
1 answer
Using MediaController.MediaPlayerControl with Service
I'm using mediaController with MediaPlayer which is contained in bound to activity service.
The problem is that when I start playing music, mediaController is not updated until I press any button on it. getCurrentPosition() returns 0, getDuration()…

Ostap Stets
- 1
- 2
0
votes
1 answer
Listen when videoview controll appears/disapears
Basicly, I want to detect when controll overlay appears and dissapears over videoview. I sow a lot of different callback on mediacontroller, unfrtunatly, I didnot recognized suitable.

Yarh
- 4,459
- 5
- 45
- 95
0
votes
1 answer
How to detect action click on MediaController in Alndroid?
I have an android app with a personalized VideoView which allows two people to stream and sync together. So each person's pause/play action will make the other's player pause/play two.
so i need to distinguish if the start()/pause() function are…

Solorchid
- 215
- 5
- 18
0
votes
1 answer
How can I create videoView with MediaController below
I'm creating videoView programmatically and It needs stay the way
videoView = new VideoView(context);
mediaController = new MediaController(context);
mediaController.findFocus();
mediaController.setEnabled(true);
…

Igor Ronner
- 1,565
- 2
- 14
- 31
0
votes
2 answers
Can't play this video android from sdcard
I downloaded the video from server url and store to sdcard, it's stored fine as a .mp4 format. But when i access this video from VideoView for playing video using MediaController, i'm getting can't play this video error. The folder name is Video.
…

user3743552
- 143
- 3
- 13
0
votes
1 answer
Video Not Seeking properly with libmedia Android
I am using libmedia to play encrypted video files. The video Plays successfully and there is no video distortion or any type of pause during video playtime and also it pause and play with mediacontroller very well.
The problem is when i try to…

Awais
- 13
- 4
0
votes
2 answers
Device not display MediaController
I am using the below code to test on emulator and device, the result came out was, the emulator can show the MediaController just below the VideoView(default is at the bottom of the screen). However, when I tested in device, it does not show me the…

user3675856
- 1
- 4
0
votes
0 answers
How to show progressbar synchronized with playing video?
I have used this code to load the video from url
VideoView videoView = (VideoView) findViewById(R.id.videoView);
//Use a media controller so that you can scroll the video contents
//and also to pause, start the video.
…

Rahul Matte
- 1,151
- 2
- 23
- 54
0
votes
1 answer
Positioning mediacontroller at bottom of listview
How to position mediacontroller at the bottom of listview like the image attached? The media controller should be shown at the end of list. I am not getting the controller displayed at all. Here is my xml file :

Siju
- 2,585
- 4
- 29
- 53
0
votes
1 answer
Progress dialog not showing up while media controller loading the sound file
I'm using a media controller and media player to load a sound file from a server. I want to display a progress dialog box while the it is loading the sound file. The problem is actually the progress car shows but not as soon as I presses the button…

Noor
- 19,638
- 38
- 136
- 254