开发者

how to insert a movie clip into my game?

im making an android gam开发者_如何学Ce and i want to insert a movie clip (.flv) of exlosion into the game, how do i do that?


You don't. Android only supports the video formats specified here: http://developer.android.com/guide/appendix/media-formats.html

Convert the video to h.264 or mpeg-4 with a supported container, then play it with the builtin android mediaplayer and/or videoview classes.


Im not sure if you can use animated gif that is supported in froyo for the browser, but you can use several .png files to simulate the explotion instead a movie clip, you can see it in the JEtBoy sample game

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜