For AI agents: the complete documentation index is available at /1.x/llms.txt, the full documentation bundle is available at /1.x/llms-full.txt, and this page is available as Markdown at /1.x/guide/usage/player-config.md.
  • English
  • 1.x
  • Player Config

    Use playerVars to configure the initial YouTube playback environment.

    <YoutubePlayer
      source="AbZH7XWDW_k"
      playerVars={{
        autoplay: true,
        controls: true,
        playsinline: true,
        rel: false,
        muted: true,
      }}
    />

    Common options include autoplay, controls, loop, muted, startTime, endTime, playsinline, rel, and origin.