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

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -