In Part 1, we compiled the FFmpeg library for android. In this post, we’ll actually do something with the library.
I took a freelance coding job asking me to code a Video Live Wallpaper. Sounds easy, right? Just create a Live Wallpaper and tell Android to play a video. How hard can that be? Unfortunately, in Android 2.1, 2.2, (and possibly 2.3), you can’t play videos in a Live Wallpaper. Well, you can but it’s something you have to program yourself. And that’s the problem. This seemingly trivial project is way harder than it looks. While not exactly rocket science, it’s not exactly a “walk in the park” either.
Let me explain exactly what’s involved: (1) you have to write your own decoder, which means that (2) you need to work with the NDK.