Video scaling

All your problems with Audio, Video and Images.

Video scaling

Postby lian » Wed Jun 17, 2009 11:26 am

Hi all,

I'm working on a media player app. IN which I need to render the video full fill the window, but I can't find correct class and API do this, Does anyone please give some suggestions to achieve that goal.

Thanks in advance,
lian
lian
Freshman
Freshman
 
Posts: 2
Joined: Wed Jun 17, 2009 11:04 am

Top

Postby Cynthia » Thu Jun 18, 2009 3:27 am

Maybe u can use
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. getWindow().setFlags(WindowManager.LayoutParams.FULL_SCREEN, WindowManager.LayoutParams.FULL_SCREEN);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
Cynthia
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Jun 18, 2009 3:19 am

Postby lian » Thu Jun 18, 2009 9:43 am

hi Cynthia,

Thank for your suggestion, but this can't solve my problem. I render the video use "SurfaceView" which inside a Window (Activity), and many "ImageButton"(such as start,stop) also inside, your method is valid to the Window but is not to "View", I want to scale the video fit to the size of "View".

Thanks in advance,
lian
lian
Freshman
Freshman
 
Posts: 2
Joined: Wed Jun 17, 2009 11:04 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 11 guests