79415548

Date: 2025-02-05 17:02:33
Score: 2
Natty:
Report link

Can implement custom play button with react-player.

<div className="relative w-full max-w-lg mx-auto">
    <ReactPlayer
      url={`https://www.youtube.com/embed/${videoId}?si=IgvZZgOeMxRHAh2w`} // Embedded url
      width="100%"
      height="300px"
      playing
      playIcon={<CustomButton />}
      light={`https://img.youtube.com/vi/${videoId}/hqdefault.jpg`} // For thumbnail img
    />
  </div>

You can install using npm i react-player

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Has code block (-0.5):
  • Starts with a question (0.5): Can i
  • Low reputation (1):
Posted by: Prathibha Sathyanjalee