iangilman / me

Just a general issue tracker for Ian.
1 stars 1 forks source link

Idea: WebView-based live wallpaper android app #11

Open iangilman opened 5 years ago

iangilman commented 5 years ago

Now that I know how to get a WebView in a live wallpaper:

https://gist.github.com/iangilman/71650d46384a2d4ae6387f2d4087cc37

… it might be cool to release an app that just lets you input any webpage to use as a live wallpaper.

One challenge is the updating; somehow the live wallpaper needs to know when to copy from the WebView to the screen. A couple thoughts:

Another thing to keep in mind is that you want the webpage to stop doing any processing when it's not on screen, but you don't necessarily want to flush it out and reload it every time the wallpaper is hidden. Again you might be able to hook into requestAnimationFrame and other such things to facilitate this.