diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 33badbb..481b1cd 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -31,7 +31,7 @@ const formatDate = (date: Date | string): string => { }); }; import { Button } from "@/components/ui/button"; -import { Share2, X, Edit3, Menu, Search, ChevronLeft, ChevronRight } from "lucide-react"; +import { Share2, X, Edit3, Menu, Search, ChevronLeft, ChevronRight, Play, Pause } from "lucide-react"; import { Input } from "@/components/ui/input"; import { Link } from "wouter"; import { apiRequest } from "@/lib/queryClient"; @@ -61,6 +61,8 @@ export default function VideoPage() { const [searchQuery, setSearchQuery] = useState(""); const [viewMode, setViewMode] = useState<"grid" | "list">("grid"); const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); + const [autoplayEnabled, setAutoplayEnabled] = useState(true); + const [autoplayTimer, setAutoplayTimer] = useState(null); // Fetch current video const { data: currentVideo, isLoading: videoLoading, error: videoError } = useQuery