How to emulate a instagram stories behaviour?

Viewed 13

I am working on a react-capacitor project that is supposed to act like Instagram stories. The user clicks on an image and then a modal is shown where a video plays, or an image shows. I have the link for the image/video already however after the user clicks the trigger the modal shows but it is just a blank screen for a split second. Which is not the end of the world, nonetheless I am trying to achieve sth like instagram stories where the video loads much much more quickly. Does anyone have any suggestion to tackle this? To reiterate : click on trigger => modal opens => black screen for a split second (the thing Im trying to get rid of) => video starts playing. I am using react-player for the video.

0 Answers
Related