在 Android 上将视频设置为壁纸
我想知道如何将视频设置为壁纸,否则不可能。我可以将图像设置为壁纸,并且可以构建动态壁纸,但我无法将视频设置为壁纸?所以有人知道我该怎么做吗?
提前致谢。
I want to know how to set Video as wallpaper or it is not possioble. I can set image as wallpaper and I can build live wallpaper but I can't set video as wallpaper ? so anyone has an idea how can I do that ?
Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为唯一可以做到的方法是将其合并到“动态壁纸”中,缺点是正如其他人提到的那样,这会严重影响电池寿命。
I think the only way that it can be done is to incorporate it into a "Live Wallpaper", the downside is as others have mentioned it will take a serious toll on battery life.
这个有趣的动态壁纸可以在 Android 2.1 或更高版本上运行。
http://mashable.com /2010/06/29/make-super-mario-bros-your-android-wallpaper-video/
this interesting, Live Wallpaper runs on Android 2.1 or higher.
http://mashable.com/2010/06/29/make-super-mario-bros-your-android-wallpaper-video/
是的,这很有可能。在Android
MediaPlayer
类中,有一个方法setSurface(Surface surface)
。使用此方法,您可以在任何表面上播放视频。从 Wallpaper Engine 获取表面并在其上播放视频。Yeah, It is very much possible. In Android
MediaPlayer
Class, there is methodsetSurface (Surface surface)
. Using this method you can play video on any surface. Get the surface from Wallpaper Engine and play video on this.