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
0
votes
1 answer

MediaController preventing the use of ImageButtons

I'm using a MediaPlayer in a TextureView to play a video in my Android app. When the MediaController is visible, it prevents me from selecting the ImageButtons I have below it in the same view (see image). When the MediaController is hidden, I…
scientiffic
  • 9,045
  • 18
  • 76
  • 149
0
votes
0 answers

MediaController.show(0) error

I'm inflating layout with VideoView into ViewPager. Here is code in instantiateItem function: RelativeLayout v = (RelativeLayout) li.inflate(R.layout.background34, null); vv = (VideoView)v.findViewById(R.id.videoView); Uri video =…
TrueCH
  • 501
  • 1
  • 6
  • 18
0
votes
2 answers

DialogFragment issues with screen orientation and MediaController

I have an app which plays videos in a DialogFragment. I have added MediaController to the VideoView however there are two issues: MediaController is hidden behind the DialogFragment. Change in screen orientation when the DialogFragment is visible…
An SO User
  • 24,612
  • 35
  • 133
  • 221
0
votes
1 answer

I'm trying to create a mediacontroller to control my audio file

Alright so i'm trying to create a mediacontroller to control my audio file that plays whenever i click on an imageview. i tried this but it wouldn't recognized the audio file (mysound) MediaController mc = new MediaController(this); …
user2192418
  • 49
  • 1
  • 5
0
votes
1 answer

Android - VideoView playing for three days then stopping

I have a curious issue with the VideoView. Im displaying three videos. When one is done I select the next one and so on. It works perfectly for about three whole days. Then a video is at the very beginning, the play MediaController play button is…
Ron
  • 22,128
  • 31
  • 108
  • 206
0
votes
1 answer

webkit mediagroup seeks to the end when .pause() is called in chrome

I'm trying to use webkits mediagroup (link to apple developer guide pdf, see page 42) to sync two html videos but it keeps giving me a headache. The MediaController doesnt seem to be working properly. In chrome the video seeks to the end of the…
datacarl
  • 2,591
  • 25
  • 21
0
votes
0 answers

OpenCV's native camera in Android prevents video player from working

I'd like to play a video file in android (using VideoView and MediaController) while enabling the camera to capture images. No camera display or preview is required. However, if I invoke "openCamera" (instantiate a new VideoCapture), the application…
0
votes
1 answer

Android media controller positioning

I am using media player and mediaController in my activity to play audio. In my activity i have an image related to the audio and beneath it the description of the audio. I want the mediaController to be displayed from the bottom of the image and…
user2041902
  • 593
  • 1
  • 6
  • 21
0
votes
1 answer

video is playing fullscreen mode in android

i wish to play the webview video on full screen mode ... if my video is start to play means its display and playing with fullscreen mode ..How can i develop these ??? give me any idea ??? if i have to click play button means the video is playing…
user2218667
  • 607
  • 6
  • 25
  • 46
0
votes
2 answers

Android AlertDialog is causing a memory leak

Good day! Mr. Spock here. I have created an ErrorListener for my Android MediaPlayer. If I try to display an AlertDialog from my handler, it causes a "leaked window" exception to occur when the "OK" button is pressed on the dialog. Here are the…
0
votes
1 answer

Android MediaController Throws IllegalStateException in getCurrentPosition() after Resuming

Hoping someone can help me out here... I have an activity that streams .mp3 files. It looks like this: public class PlayMediaActivity extends Activity implements OnPreparedListener, MediaController.MediaPlayerControl{ private static final String…
Mr. Spock
  • 645
  • 1
  • 9
  • 21
0
votes
1 answer

Compilation errors with android.widget.MediaController

I'm trying to customize the MediaController. While doing so, I've stumbled upon a problem. Both my slightly modified version and the unmodified source of MediaController won't compile with intelliJ IDEA. When compiling the unmodified source code I…
0
votes
0 answers

Is it possible to stop a video after a specific time period

i currently am using this code to play both audio and video files but I need to be able to stop the video/audio file after a specific time frame like 30 seconds. Is it possible using videoview and the mediacontroller I have been trying but…
Jeff Janes
  • 885
  • 1
  • 8
  • 22
0
votes
1 answer

How to get Media controls in Webview in android?

I am having Webview in android & currently playing youtube video from the Url. top of the webview, there is an actionbar. I want actionbar to be hidden when video is playing & actionbar to show when video is onPause. is there any way to get the…
Jags
  • 143
  • 1
  • 10
0
votes
1 answer

Fullscreen VideoView button

I'm currently using a VideoView together with MediaController and I wonder if there is a simple way to add a fullscreen button mode. That would be a button, on the MediaController bar or somewhere else on the top of the VideoView, that on click,…