Step 2: Configure the key in Commerce

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Catalog and choose Catalog underneath.

  3. Expand Expansion selector the Product Video section and paste your YouTube API key.

    Product Video configuration

  4. When complete, click Save Config.

  5. When prompted, refresh the cache.

  1. Open a product in edit mode.

  2. Scroll to and expand the Images and Videos section.

    Images and Videos

  3. click Add Video.

    If you haven’t yet configured your YouTube API key, click OK  to continue. You cannot link to a YouTube video, but you can go through the process.

  4. For Url, enter the URL of the YouTube or Vimeo video.

    New video for product

  5. Click outside the field and wait for feedback on the API key or video.

    If everything checks out, YouTube provides base information of the video

  6. Enter the Title and Description of the video.

  7. To upload a Preview Image, browse to the image and select the file.

    NOTE
    After upload, the preview image that displays is automatically generated by an external video service provider. You cannot edit the image from the Adobe Commerce Admin.
  8. If you prefer to use the video meta data, click Get Video Information.

  9. To determine how the video is used in the store, select the checkbox of each Role that applies:

    • Base Image
    • Small Image
    • Swatch Image
    • Thumbnail
    • Hide from Product Page
  10. When complete, click Save.

    NOTE
    If the Autostart base video configuration option is set to Yes but the video does not begin to play automatically, it could be due to the autoplay policies that are enforced by the browser and cannot be controlled by Adobe Commerce. Each supported browser has its own autoplay policies that can change over time and your video may not autoplay in the future. As a recommended best practice, you should not rely on autoplay for business critical functionality and should test the video autoplay behavior in your store with each supported browser.