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
How to get the id of MediaController's buttons in Android
I would like to get the id of the buttons (play, pause, next, previous) inside the mediacontroller. I was able to successfully do that for seekbar following this piece of code:
final int topContainerId =…

kdroider
- 731
- 5
- 20
0
votes
1 answer
Cannot able to access MediaController Field using Reflection
I am trying to change Visibility of FastForward Button present in MediaController Class using concept of Reflection.
Below is my code snippet.
package com.example.reflection;
import java.lang.reflect.Field;
import android.app.Activity;
import…

Vipul
- 27,808
- 7
- 60
- 75
0
votes
1 answer
Android mediacontroller pauses when display turns off?
is there a way to stop mediacontroller from pausing when the screen display turns off either by itself or manually. My app uses the mediacontroller to stream audio files from the internet so I need it to keep playing even if the screen is off.
Any…

Will
- 1,487
- 1
- 23
- 35
0
votes
1 answer
Android - Cannot Play this Video !! What's Going on?
I'm trying to create an app in which user can play In-App videos (videos already packaged in the application). No SDCard or Online streaming is going on.
But no matter what strategy I use I'm not able to run a simple .mp4 video in my app.
I've…

Harry
- 3
- 2
- 9
0
votes
1 answer
MediaController Visibility
I have an Android application that uses a VideoView to play videos and I am also using a media controller.
My problem is I am unable to prevent the media controller from disappearing while the video is playing and i would also like to make the…

RagHaven
- 4,156
- 21
- 72
- 113
0
votes
1 answer
Enabled links from a given media entity
In Linux V4L2 and media controller architecture, we treat media devices as media entities and establish connections between them dynamically on the go..!! For example, demux0(demuxer 0) can be connected to Vid_plane1(Entity name given to the main…

Sandeep
- 18,356
- 16
- 68
- 108
0
votes
1 answer
Unable to intercepts touch events in custom MediaController subclass
I'm trying to subclass MediaController in order to make it fully customizable (I'm not going with vidtry approach because I have some legacy code that I can't change).
My code looks roughly like this:
mc_layout.xml:

sinek
- 2,458
- 3
- 33
- 55
0
votes
1 answer
Play video with media controller on specific area of an activity
I want to make layout like the attached image but the problem is when I create media controller it doesn't appear below the video player instead it shows on the centre bottom of activity. I've tried to make mediacontroller in xml file but It…

ZeeShaN AbbAs
- 1,365
- 2
- 15
- 31
0
votes
1 answer
How to change the tap surface of the media controller?
I'm trying to create a custom video player. I use a VideoView to display my movie and a MediaController to control the video.
When the user tap on the screen it should show the header and the media controller for 3 s (or more if the user continue…

Fr4nz
- 1,616
- 6
- 24
- 33
0
votes
2 answers
NullPointerException VideoView and MediaController on Fragment in android
I am developing Galaxy Tab 10.1 app by using honeycomb 3.1 and i have a videoview and mediacontroller in fragment on the right side. I defined VideoView and MediaController in Layout xml file and instantiate and manipulate them in the related java…

Kevin Son
- 15
- 2
- 6
-1
votes
1 answer
E/MediaPlayerNative: error (1, -2147483648)
I have uploaded a video in my recourses file in android studio and I want to play the video offline in my app my video is of 1 MB but when I run my app it throws an error
error (1, -2147483648)
and a pop up
shows up that Video can not be…

Arooba Siddiqui
- 1
- 1
-1
votes
1 answer
Can we create Media Controls in Notification bar for Web Media Player in Android App?
I have created app were i am using web-media-player by using below code.
WebView webView = root.findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setLoadWithOverviewMode(true);
…

VikaS GuttE
- 1,636
- 2
- 14
- 38
-1
votes
4 answers
MediaController mediaController = new MediaController(this); is showing error
I am developing an app where I have t play videos from Firebase Storage using RecyclerView.
But when I am trying to declare the MeidaController with context: "this", it is showing error. Please check my code.
The error comes when I am declaring…

Badal Kumar
- 47
- 2
- 8
-1
votes
2 answers
MediaController is not anchored with VideoView, it is displaying behind Videoview from lollipop in dialog,?
Not able to display MediaController in dialog from lollipop version.
Code is showing MediaController below lollipop but not from lollipop.
private void showMediacontroller(){
View view…

Rahul Jain
- 276
- 2
- 11
-1
votes
1 answer
How can Videoview display fullscreen when mediacontroller hides?
This is my activity and it's working.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_playing);
…

monkeyandroid
- 1
- 1