TarheelGrad1998 / gallery-card

A custom card for Home Assistant that will display images and/or videos from a folder in the style of a gallery.
97 stars 30 forks source link

Media Source Support #2

Closed daranto closed 3 years ago

daranto commented 3 years ago

Hello,

maybe its possible to add support for https://www.home-assistant.io/integrations/media_source/

So its not necessary to put the video files into the "www" folder.

TarheelGrad1998 commented 3 years ago

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

maxill1 commented 3 years ago

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.

TarheelGrad1998 commented 3 years ago

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.

maxill1 commented 3 years ago

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: https://github.com/maxill1/gallery-card/commit/8fde8070c4146f05e9eb28d0d5bb4611afd55016

What it does:

What it lacks:

TarheelGrad1998 commented 3 years ago

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