I've uploaded a youtube video to a product in Magento 2.

It's displaying fine, but I want to autoplay that product video in front.


2 Answers 2


Go to Stores > Configuration > Catalog > Product Video (where you entered the YouTube API key).
There should be a field called Autostart base video. Set that to Yes.

Magento 2 Youtube API

  • Thank you Marius its working, but is there any possible to play when mouse over Jun 6, 2017 at 13:47
  • I don't think so. I think you are in youtube territory when you hover the video and you cannot control that, unless the youtube API allows you to.
    – Marius
    Jun 6, 2017 at 13:51
  • 1
    @Marius In mobile device why we need to click two time in youtube video ? Is that any solution to click youtube video on once click. May 23, 2018 at 6:35
  • @hweb87. I have no idea.
    – Marius
    May 23, 2018 at 6:36
  • We have enabled this setting, cleared cache, but a YouTube video is not autoloading still on a product page. Any idea how to debug from here to work out the reason please?
    – MagentoMac
    Oct 18, 2021 at 14:20

You can add video for product page in Magento 2. I have shared link below, https://magenticians.com/add-video-to-product-in-magento-2/

Hope this may help you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.