RT
Rob T
Horizontal Poster - Copy this React, Tailwind Component to your project
after 10 seconds a youtube player appears on z index upper and play a video automatically, when video finished, disappear. use this: <YouTube videoId="EIVMVIr3q3Y" opts={{ width: '100%', height: '100%', playerVars: { autoplay: 1, controls: 2, disablekb: 1, fs: 0, modestbranding: 0, rel: 0, iv_load_policy: 3, // Disables annotations showinfo: 0, // Deprecated, but can try enablejsapi: 1 // Allows control via JavaScript }, }} onEnd={onVideoEnd} className="w-full aspect-video" />
Prompt
