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
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.board);
RelativeLayout lView = (RelativeLayout) findViewById(R.id.RelativeLayoutMain);
VideoView mVideoView = new VideoView(this);
mVideoView.setVideoURI(Uri.parse(path));
mVideoView.start();
mVideoView.setBackgroundColor(Color.BLUE);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(30, 30);
mVideoView.setLayoutParams(layoutParams);
lView.addView(mVideoView);


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 ?
niedved
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Jul 09, 2011 6:48 pm

Top

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
oupoower
Freshman
Freshman
 
Posts: 2
Joined: Tue Jul 19, 2011 8:21 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: MSNbot Media and 27 guests