Job description
JS + PHP/HTML script for displaying shorts (short videos).
Need code snippets (without integration issues) responsible for:
displaying in HTML/CSS structure the videos located on the server.
Database structure simple - filename, caption, add_date.
We display one under the other, let's assume 10 records from the database.
The videos must not have “browser” play/pause/mute buttons, etc. or frames.
We follow the typical short like on FB or YT.
We display our own semi-transparent on the video at the bottom: start/pause, heart icon, sound on/off, and a cloud with a number (comments).
The order is not to handle the backend of these buttons.
It is enough that when you click on the video or the start/pause button, the video will react accordingly, the heart and the cloud with comments will also be clickable (just
in JS in the console display some event log).
In addition, when scrolling down the page, the videos play (the one that is most visible, and the others stop).