To use this version that I’ve made available, you’ll need to set up a database. I used FirebaseDB for this purpose. The database structure is as follows:
- Collection: media
-Document Fields:
- url: The URL of the media file.
- type: Specifies the media type, which can be either video or image.
- random: A random value between 0 and 1.
- (Additional fields may exist—please refer to the source code for a complete list, as I don’t recall all of them right now.)
The database is essential for the website to function properly, so make sure it’s configured correctly. For further details, feel free to check the code.