VideoView ignore LayoutParams in HDMI mode

All your problems with Audio, Video and Images.

VideoView ignore LayoutParams in HDMI mode

Postby niedved » Sat Jul 09, 2011 6:52 pm

Hello ,

Part of my test code:

Code: Select all
RelativeLayout lView = (RelativeLayout) findViewById(;
VideoView mVideoView = new VideoView(this);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(30, 30);

When I launch APP on Tablet only It works fine. I have Video playing in left top corner and scaled to 30x30.

But when I connect Tablet via HDMI to my TV and launch APP I have only 30x30 rectangle in left top part of screen. Video is plaing outside this rectangle at center of screen size: 500x400 or smth like this.

I have tried also make xml layout with VideoView inside setting all parameters and always in HDMI mode VideoView ignore all settings and play movie at center of screen.

Any idea ?
Once Poster
Once Poster
Posts: 1
Joined: Sat Jul 09, 2011 6:48 pm


Re: VideoView ignore LayoutParams in HDMI mode

Postby oupoower » Mon Jul 25, 2011 11:55 am

How can I hook up my monitor to a HDMI cable if my LCD monitor only has the standard monitor outlet? I got a new computer that only has a HDMI output to hook it up to a LCD. My monitor does not have the HDMI plug, is there a way to connect my monitor?
yahoo keyword tool ~ overture ~ traffic estimator ~ adwords traffic estimator
Posts: 2
Joined: Tue Jul 19, 2011 8:21 am


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 14 guests