REMINDER
Video Galleries
-
Hello all,
I'm trying to find the best way to create a gallery of videos for our homepage.
I'm having two issues:
-
I can't find an easy way to play a video from a gallery object. I found that if I set it to external link, I have to manually change the YouTube link to add /embed/ in the url for it to work, to avoid CORS issues.
-
I would prefer this to be dynamic - so from the CloudBackend or YouTube playlist, it automatically fetches thumbnails, Titles, etc. and renders the gallery objects with the links already set. Keeping this a manual process is not desirable.
Anyone have any good ideas for how to accomplish this?
I can easily manage the CloudBackend part, I'm just not sure how to populate the visual elements automatically using the API data, and staying within PageBuilder.
Thanks in advance.
-
-
@Daniel-Mulroy said in Video Galleries:
I would prefer this to be dynamic - so from the CloudBackend or YouTube playlist, it automatically fetches thumbnails, Titles, etc. and renders the gallery objects with the links already set. Keeping this a manual process is not desirable.
Hey Daniel,
in this tutorial we show how to generate a gallery with data coming from cloud backend database
https://academy.appdrag.com/FullStack-with-cloud-backend-Episode-5.htmlIt's based on the factory pattern, we call the api in JS to get the rows from the DB and we do a FOR loop on each row, and for each row we generate a gallery item and add it
In that loop you could also do a simple replace in the youtube url to shape it like you need (/embed/)
OR a total different way ... with dynamic datasources (repeating a column containing an iframe ...)
-
Brilliant !
I'll give this a try.