How to play video as live wallpaper android?

Does anyone know how to play .mp4 video as live wallpaper?

I searched a lot, but couldn’t find the solution. I just found this one but I am not getting any idea from it.

  • Wrong Java Compiler When Including a Java Module as Dependency in Android Studio
  • How to get an icon associated with specific Account from AccountManager.getAccounts()
  • Android: CursorLoader, LoaderManager, SQLite
  • NotImplementedException on android
  • Using Repo with Msysgit
  • adb got two same serial numbers when connected to two smart phones
  • Please help me if you have any idea regarding this concept.

    Related posts:

    Trying to autoplay YouTube video in a PhoneGap/Cordova app
    Which is more secure: External browser or ChromeTab for authorization?
    Where is the source code of Android Architecture Components?
    Show keyboard for edittext when fragment starts
    persian/arabic search in sqlite android gives bad result
    Android userspace filesystem driver on non-rooted device?
  • Install ADT plugin in Eclipse
  • Submiting score to leaderboards with Google Play Game Services
  • getApplication() vs. getApplicationContext()
  • including list_content into list layout to retain ListFragment functionality
  • Android - is there a callback that gets called right after onResume()?
  • Strange issue in Combining Audio Files and playing in different API versions
  • 2 Solutions collect form web for “How to play video as live wallpaper android?”

    After spending 3 days finally I run this project in eclipse.

    I am sharing the steps as it may help others:

    Firstly, the most important thing is that Your project path and ndk path should not contain spaces else you will have problems following these steps. I also faced problems with it so please remove the spaces, if any.

    For example :-

    android ndk/Live wallpaper

    replace it with


    Following are steps :-

    1) Install NDK from Android NDK page
    (I used Ubuntu OS)

    2) Install plugins for NDK ( )

    3) Open your terminal and go to your project directory path

    For Example :- /yourprojectname$

    4) Now from your project directory path write Your Android NDk path

    For Example :-


    And Press Enter. This will give you a .so file which means the library file has been generated..

    You have done it successfully. If you are getting error(s) here then the installation and the other steps might be having error(s).

    Following links helped me in my research:




    And also thanks to Lazy Ninja for helping me.

    You are up on a good challenge, unless you are familiar with android ndk.
    There is the library ffmpeg which will save you some time.
    A tutorial on Video Live Wallpaper here.
    Go through part 1 -4.
    And here is a link of the project code.
    Hope it will help you get started.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.