Relative Content

Tag Archive for algorithm

How to toggle between buffered (hidden) video and rendered video in this context?

I have a complicated react app dealing with video streams, but this question can boil down to something a lot simpler. Basically, I need to buffer a video “in the background”, using a hidden div (don’t ask me why), and meanwhile display the current video. Then it cycles through n number of videos every few seconds, buffering the next video while the current video plays.