Configure product video
What’s in this topic
In Magento 2 on product pages you can add video from external resources (currently, from YouTube and Vimeo). Video is added in Admin when creating or editing a product.
Certain product video options can be set in the
config.xml configuration file. These settings are not theme-specific.
Configure product video options
You can set the following product video options:
||Play automatically on page load.||Boolean||
(video is not played on page load)
||Display related videos.||Boolean||
(related videos are not displayed)
||Auto re-play video.||Boolean||
(video is not automatically replayed)
The options are set in the
config.xml of your custom module.
For the sake of compatibility, upgradability and easy maintenance, do not edit the default Magento code. Instead add your customizations in a separate module.