开发者

how to insert a movie clip into my game?

开发者 https://www.devze.com 2023-01-13 01:43 出处:网络
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://

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

精彩评论

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