How to play a video in surface view
I want to play a video giving fixed height and开发者_开发百科 width, not whole screen. Can anybody tell me how to play the video in a surface view on android? Please provide sample code
Thanks
Maybe a VideoView is what you want. I found some sample-code here.
Please try below:
surfaceholder.setFixedSize(width,height);
精彩评论