如何播放视频的动态壁纸的Andr​​oid? [英] How to play video as live wallpaper android?

查看:112
本文介绍了如何播放视频的动态壁纸的Andr​​oid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道 如何播放的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.

例如: -

的Andr​​oid NDK /动态壁纸

android ndk/Live wallpaper

其替换

androidndk / Livewallpaper

androidndk/Livewallpaper

下面是步骤: -

1)从的Andr​​oid 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)现在从你的项目目录路径写您的Andr​​oid 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.

这篇关于如何播放视频的动态壁纸的Andr​​oid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆