开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜