我正在android中开发实时视频壁纸应用程序,它将拍摄视频并将其设置为动态壁纸。但是,我不能使用 videoview,因为绘图仅在画布上完成,我不确定如何使用画布播放视频。
在这方面的任何帮助将不胜感激。谢谢!
You need to get the frames from video as byte array and display on canvas by converting this byte array as bitmap and call the following method.
canvas.drawbitmap(yourbitmap,0,0,null);
More information can be had from the following link.
http://developer.android.com/guide/topics/graphics/2d-graphics.html#frame-animation
Hope this will help you.