GithubHelp home page GithubHelp logo

Media Source Support about gallery-card HOT 5 CLOSED

daranto avatar daranto commented on August 29, 2024 1
Media Source Support

from gallery-card.

Comments (5)

TarheelGrad1998 avatar TarheelGrad1998 commented on August 29, 2024 2

I updated on this in another thread, but fwiw I am making progress on this. I have it supporting media_source but need to extend the card editor to allow it. I'm hoping I can wrap that up and have it for release the end of the month.

from gallery-card.

TarheelGrad1998 avatar TarheelGrad1998 commented on August 29, 2024 1

Hrm, sounds like it might be doable. I haven't upgraded yet, but once I do I will look into it.

from gallery-card.

maxill1 avatar maxill1 commented on August 29, 2024

I'm interested in this too, mostly because with media_source images are under authentication (shared key).

media_source component doesn't have state, so i think we should use websocket api.

from gallery-card.

maxill1 avatar maxill1 commented on August 29, 2024

Some weeks ago I did some basic implementation but right now I don't have much spare time to give it a clear shape...i'm really sorry I couldn't help more.

The code is unfinished but may be useful to you to finish yours.

see this commit: maxill1@8fde807

What it does:

  • moment js for date formatting
  • WS call to fetch media-source uri (example: media-source://media_source/security/motioneye/.)
  • WS call to fetch media content id and auth keys
  • "currentDate" alias for generating a dynamic media-source uri (example: media-source://media_source/security/motioneye/{currentDate}/.)
  • initial data load via button (see below why)

What it lacks:

  • proper data load/releoad to avoid loops and eager data fetching (we should avoid doing it in LitElement lifeCycle "render" hook, its heavy. Maybe firstUpdated or performUpdate or requestUpdate?)
  • proper filename/caption templating
  • card config and preload of media-source for UI selection

from gallery-card.

TarheelGrad1998 avatar TarheelGrad1998 commented on August 29, 2024

This has been added in v3.0, just released.

from gallery-card.

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.