MediaController inside VideoView

All your problems with Audio, Video and Images.

MediaController inside VideoView

Postby m1shk4 » Mon Jun 13, 2011 9:51 am

Is there any way to display MediaController inside the linked VideoView?
After the code:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. VideoView videoView = findViewById(R.id.VideoView);
  2. MediaController mediaController = new MediaController(this);
  3. mediaController.setMediaPlayer(videoView);
  4. videoView.setMediaController(mediaController);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4

MediaController width is equal to the VideoView's, but the controller is located at the bottom of the screen, not the bottom of the VideoView.
P.S. Sorry for a bit confusing message, english is not my native language :)
m1shk4
Developer
Developer
 
Posts: 38
Joined: Wed Jan 12, 2011 4:26 pm
Location: UA

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 12 guests