oasisprotocol / playground

Demo dApps running on the Oasis Network.
https://playground.oasis.io
Apache License 2.0
3 stars 4 forks source link

Videos support #59

Open matevz opened 6 months ago

matevz commented 6 months ago

Currently, the screenshots are read from the screenshots folder of each project. Some projects also have videos available and we need to integrate them into the existing screenshots scheme.

I suggest an interface similar to https://taikai.network/cryptocanal/hackathons/ethdam2024/projects/cluz0xnnj013uz301nfa9uj4g. In the project .yaml files we should add the following syntax:

videos:
  - https://www.youtube.com/watch?v=muluwPB6a9w
  - https://assets.oasis.io/videos/ethdam2024/hackathon/oasisguard.mp4

The videos are then embedded inside the gallery and inserted before any other screenshots in the order provided in the .yaml file. If the youtube.com or youtu.be prefix is detected, then the youtube-specific iframe is added (cookies confirmation?). Otherwise, the video is shown as the <video> tag.