src/components/vimeo-auto-player.tsx'use client'import Player from '@vimeo/player'import { clsx } from 'clsx'import { useEffect, useRef, useState } from 'react'import { useInView } from 'react-intersection-observer'import { state, useSnapshot } from '@/state'type VimeoAutoPlayerProps = {videoId: stringclassName?: stringid?: stringaspectRatio?: string // e.g., "16/9", "4/3", "21/9"width?: numberheight?: numberautoplay?: boolean // Control autoplay behaviormuted?: boolean // Control whether video is mutedcontrols?: boolean // Show/hide player controls (default: true)}
Showing the first 20 lines.
Get full code