diff --git a/src/App.js b/src/App.js index eb12c6d..f514144 100644 --- a/src/App.js +++ b/src/App.js @@ -364,7 +364,13 @@ const App = () => { if (visibleIndex === false) return _visibleIndexes; - return [visibleIndex - 1, visibleIndex, visibleIndex + 1]; + return [ + visibleIndex - 1, + visibleIndex, + visibleIndex + 1, + visibleIndex + 2, + visibleIndex + 3, + ]; }); }; diff --git a/src/components/VideoCard/index.jsx b/src/components/VideoCard/index.jsx index b2fcd80..ac5f951 100644 --- a/src/components/VideoCard/index.jsx +++ b/src/components/VideoCard/index.jsx @@ -27,8 +27,9 @@ const VideoCard = ({ index, url, title, isLoaded, isMuted, refForwarder }) => { }} onClick={togglePause} muted={isMuted} - loop - playsInline + loop={true} + playsInline={true} + preload="auto" /> );