Giter Club home page Giter Club logo

Comments (5)

Mecharyry avatar Mecharyry commented on May 26, 2024

@AndroidDeveloperLB I'm sorry to hear that you are having issues using no-player to create a live wallpaper. So that we can help you as soon as possible can you please follow the issue template associated with this repo. If you can provide any links code where you use no-player for the wallpaper that would be especially helpful.

from no-player.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 26, 2024

I don't use it yet. Before I use it, I want to know how to do it in a live wallpaper app.
If you want, here's the project (before using this library, as I wrote) :
https://github.com/AndroidDeveloperLB/MovieLiveWallpaper

from no-player.

Mecharyry avatar Mecharyry commented on May 26, 2024

Hi @AndroidDeveloperLB in order to use no-player you need to attach a NoPlayerView and then load the video you desire. We do not actively support doing this with a live wallpaper, it's somewhat of an edge case.

I'm unsure how you would do this using no-player without spending more time looking at the WallpaperService documentation. My guess is you would need to create a NoPlayerView that takes the SurfaceHolder created by the Wallpaper and then attaches the NoPlayerView to no-player and plays the video.

from no-player.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 26, 2024

Well that's the problem with live wallpaper. It doesn't have a view.
Anyway, thanks.
Hopefully this clue will suffice.

from no-player.

Mecharyry avatar Mecharyry commented on May 26, 2024

Hi @AndroidDeveloperLB Your issue with Live Wallpaper interested me enough that I took some more time to take a look this evening. I tried implementing it with no-player with no luck. You really need to inflate a view and use that view to make it work. You can, but it might be a lot of work, to perform the measure and layout yourself of whatever view you want to use. This could be no-player for example.

Romain Guy, one of the devs who worked on the Live Wallpaper says in this
https://stackoverflow.com/a/5001076/3687239
that it isn't supported because it wasn't the intention but you can measure and layout your own view.

I wish you luck! I'll be closing this issue.

from no-player.

Related Issues (20)

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.