Giter Club home page Giter Club logo

android-libgdxlivewallpapertemplate's People

Contributors

kloverde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

android-libgdxlivewallpapertemplate's Issues

Question: is it possible to use this for showing a video, too?

I've noticed this sample too, of showing a video using LibGdx:
https://github.com/libgdx/gdx-video

It doesn't seem to "fit" what's shown there, meaning that here it has a function of "render" that needs to be called all the time.
Yet there it's quite automatic, as it binds to the MediaPlayer, and seem to use a different function, of "update" instead, probably to prepare the next frame.

Is there really a way to use LibGdx to show a video on a live wallpaper?
Could I also make it translate (move) horizontally, as you scroll (using offsetChange), and scale it accordingly to have something like scale-crop of images on Android?

Possible bug: "pause" never gets called, even when switching to another app or turning off the display

I've looked at the logs and can confirm all of them work fine and appear for me, except for "pause".
When does it occur?

To overcome this, here's a workaround which I hope it's valid (though for some reason sometimes it calls multiple times even though it switched just ones) :

class LibGdxWallpaperTemplateService : AndroidLiveWallpaperService() {


    override fun onCreateEngine(): Engine {
        return object : AndroidWallpaperEngine() {
            override fun onVisibilityChanged(visible: Boolean) {
                super.onVisibilityChanged(visible)
                Log.d("AppLog", "onVisibilityChanged:$visible")
            }

            override fun onPause() {
                super.onPause()
                Log.d("AppLog", "onPause")
            }

            override fun onResume() {
                super.onResume()
                Log.d("AppLog", "onResume")
            }
        }
    }

Should I report this to LibGdx, or is it an issue only here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.