如何播放视频的动态壁纸的Android? [英] How to play video as live wallpaper android?
问题描述
有谁知道 如何播放的MP4视频作为动态壁纸
Does anyone know how to play .mp4 video as live wallpaper
?
我搜索了很多,但无法找到解决办法。我刚刚发现<一href="http://stackoverflow.com/questions/9307723/it-is-possible-to-video-live-wallpaper-in-android-application">this 之一,但我没有收到任何想法,从它。
I searched a lot, but couldn't find the solution. I just found this one but I am not getting any idea from it.
请帮助我,如果您有任何关于这个概念的想法。
Please help me if you have any idea regarding this concept.
推荐答案
花3天后终于我跑这一项目日食。
我分享的步骤,因为它可以帮助他人:
I am sharing the steps as it may help others:
首先,最重要的是,你的项目路径
和 NDK路径
不能包含空格否则你会具有以下步骤的问题。我也面临着与它的问题,请删除空格,如果有的话。
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.
例如: -
的Android NDK /动态壁纸
android ndk/Live wallpaper
其替换
androidndk / Livewallpaper
androidndk/Livewallpaper
下面是步骤: -
1)从的Android NDK页面安装NDK (我用的Ubuntu OS)
1) Install NDK from Android NDK page (I used Ubuntu OS)
2)安装插件
的NDK(的 https://dl-sl.google.com/android/eclipse/ )
2) Install plugins
for NDK ( https://dl-sl.google.com/android/eclipse/ )
3)打开终端进入你的项目目录路径
3) Open your terminal and go to your project directory path
例如: - /命名为yourprojectname $
4)现在从你的项目目录路径写您的Android NDK路径
4) Now from your project directory path write Your Android NDk path
例如: -
/home/rainc/android_setup/android-ndk-r8d/ndk-build
和preSS输入。这会给你一个的.so
文件,这意味着该库文件已经生成。
And Press Enter. This will give you a .so
file which means the library file has been generated..
您已经成功地做到了。如果您收到错误(S)这里,那么安装和其他步骤可能有错误(S)。
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:
<一个href="http://stackoverflow.com/questions/9407224/how-to-install-and-build-ndk-with-eclipse">First
和还多亏了懒惰忍者帮我。
And also thanks to Lazy Ninja for helping me.
这篇关于如何播放视频的动态壁纸的Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!