Questions tagged [mediacontroller]

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.

303 questions
2
votes
1 answer

How to set MediaContollerto MediaPlayer in android?

How to set MediaContoller to MediaPlayer in android and I want to show it permanently ?
Adham
  • 63,550
  • 98
  • 229
  • 344
2
votes
1 answer

Android MediaControler does not work with video from url

I have video player, video is from url. It works- I can start and stop playing video. I would like to have a possibility to move progres in MediaController. I have set the MediaController, but it doesn't work. When I use a video from file i can …
Piotr Kuk
  • 21
  • 1
  • 3
2
votes
0 answers

Active buttons and a never-disappearing `MediaController` at the same time, possible?

I implemented a simple MediaController using this code (which I found here on stackoverflow). My first problem is that I want the MediaController to be visible always. I can override the hide() method, but at this point I cannot exit from my app…
Jani Bela
  • 1,660
  • 4
  • 27
  • 50
2
votes
1 answer

how to hide a media controller when a video starts in android?

I'm trying to play a video with the media controller sets to invisible, so when I override the back key, the video stops and the activity finishes. But, when I press the back button before spending three seconds, I need press the button twice,…
beni
  • 3,019
  • 5
  • 35
  • 55
2
votes
1 answer

Taking control of the MediaController progress slider

I need to catch touch events to the MediaController progress slider, so that updates to the MediaPlayer don't occur until the finger lifts off the slider. [ Perhaps my situation is unique: I am playing streaming video that comes in multiple "stacks"…
coco
  • 2,998
  • 1
  • 35
  • 58
1
vote
1 answer

How to add a button to play video using MediaController?

Update on 2/18/2012 I received a reply from my busy instructor on what the button should be and he said it should be the MediaController buttons (Play, Previous, and Next) and I believe it should be shown always on the screen and not a custom…
macrogeo
  • 97
  • 1
  • 11
1
vote
2 answers

VideoView not working

I tried to open a mp4 video like this : VideoView myVideoView = new VideoView(this); myVideoView.setVideoURI(Uri.parse(path[idImage])); myVideoView.setLayoutParams(new LinearLayout.LayoutParams( …
Gabrielle
  • 4,933
  • 13
  • 62
  • 122
1
vote
0 answers

How to tint the video, but still display the MediaController progress bar?

In my application I am using VideoView to play a video. Through this forum I have learnt to show the progress bar (MediaController) persistently (without hiding). My requirement is to tint the video on some action (lets say pause on…
neo
  • 53
  • 4
1
vote
2 answers

when Playing the video background, report android.view.WindowManager$BadTokenException:Unable to add window-token null is not valid;

I am trying to play videos in VideoView in the recyclerView using realTime database. Here is my adapter code of the recyclerView. :- class VideoAdapter(private var mContext: Context,private var mvideos: List) :…
1
vote
0 answers

Getting error in MediaController(this) as i had used this in the adapter class

Getting error in MediaController(this) as i had used this in the adapter class to display video in recycler view. Can you please help me find the cause of the error I get? This is my implementation: class VersionAdapter(val…
1
vote
0 answers

MediaPlayer MediaOpenned event is not firing on .net class

I'm trying to build a class where my thumbnail class is capturing a frame as a thumbnail of the videos users uploaded, things have gone good so far. I've written down the application on wpf app first and then decided to move to a class on my website…
umutto
  • 7,460
  • 4
  • 43
  • 53
1
vote
1 answer

Android media controller

By default the mediacontroller for video view appears only for 3 sec. I want it to be there untill the song is playing. I know I have to use this peice of code: - mediacontrollername.show(0); But apparently it doesn't seems to be doing its job…
Android
  • 8,995
  • 9
  • 67
  • 108
1
vote
0 answers

Audio player controls disappears

I'm playing audio file using the mediaController. Everything is working fine, just the media controller hides after few second, but I want to show it then what should I do? setContentView(R.layout.playingactivity); mPath = (EditText)…
Android
  • 8,995
  • 9
  • 67
  • 108
1
vote
3 answers

"Can't play this video" Error using URL with VideoView and Mediacontroller

So I'm trying to do my homework, but the teacher's given me 0 information about this. There is an example of how to play a video from a file in the res/raw folder, but there's nothing about online URLs. Please help me, I just want a simple player.…
Jesus CG
  • 49
  • 1
  • 1
  • 7
1
vote
0 answers

How to make customize mediacontroller for videoview

I make whole video player app but stuck at mediacontroller. I want to show my own mediacontroller with different button, not the default one. It's 4rth day, i'm just trying to make my own mediacontroller but didn't succeed. I succeed by doing it…
Abdullah Khan
  • 249
  • 2
  • 8