diff --git a/components/playlist/index.tsx b/components/playlist/index.tsx index c14f283..d8cb92a 100644 --- a/components/playlist/index.tsx +++ b/components/playlist/index.tsx @@ -201,6 +201,7 @@ const VideoPlayer = ({ content, nextId }: { content: any; nextId: number }) => { controlsList={data?.is_downloadable === 0 ? "nodownload" : ""} // Conditionally enable/disable download poster={data?.banner_url} playsInline + autoPlay={nextId !== 1} onEnded={() => router.push(`${pathName}?video=${nextId}`)} > @@ -223,6 +224,7 @@ const VideoPlayer = ({ content, nextId }: { content: any; nextId: number }) => { controlsList={data?.is_downloadable === 0 ? "nodownload" : ""} // Conditionally enable/disable download className="w-full rounded bg-white" onEnded={() => router.push(`${pathName}?video=${nextId}`)} + autoPlay={nextId !== 1} >