Hiya, I’m making a simple 2 screen video player. One screen will display a full screen video, and the second screen displays a grid of buttons, which when pressed will trigger a different video to play. (Approximately 20 videos, each linked to a button)
I’m setting this up as a single composer project, with the two sides mapped to the correct screen. (See screenshot)
I was wondering if anyone knows the most efficient way of switching between videos, so there is no loading time. Viewers will be able to click buttons to instantly start playing the video.
I’ve currently set up an Swap Collection with child video players, so there is a video player for each video.
This would require me to add a trigger to every button, with the following steps:
- Stop all video players playing
- Rewind all video players
- Set swap collection “index in focus” asset to the correct number (depending on button pressed).
4.Play 1 video player (the one in focus, depending on button pressed).
The videos are currently stored as attachments in airtable.
I’m currently seeing a white flash when I’m triggering the rewind action before playing. I’m also finding that the loading time is instant when I’m playing a video added to the content library, but there is a slow loading time when playing from airtable.
I’m wondering if anyone has any knowledge about best practices about swapping between videos?
Can I read videos from Airtable, or is it always faster adding to the content library?
And secondly is my method of using 20 video players in a swap collection fine, or should I use a single video player and swap the Video reference?