surfaceview - video is not playing with aspect ratio of device in android -


i have used surface view play video server. have used async task play view.and shown progress dialog till video prepared play in media player. doinbackground code follows.

 holder = mpreview.getholder();  holder.addcallback(mediaplayerdemo_video.this);  holder.settype(surfaceholder.surface_type_push_buffers); 

every thing perfect problem video not playing in proper size, means small in big resolution device.how set size of surface view defined in oncreate() , rest code given async task.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -