Videos can be added from such external resources as YouTube and Vimeo in Magento 2. It can be added when creating or editing a product from the backend. If you want to perform your products in YouTube videos, then you need to obtain an API Key from your Google account and enter it into the configuration of your Magento store.
There's a simpler way round. You can add product videos via our Magento 2 Product Attachments module. In case you have’t moved to Magento 2, you can use the same extension for Magento.
You will be switched to API Credentials. Choose one of the options offered in the Create Credentials drop-down menu.
Once you received the message, check whether all the settings were made correctly:
Several product video options can be set in the config.xml configuration file. The settings can be done in the file of your custom module.
If you are not a tech-savvy admin user, you may have some difficulties while configuring product videos. For example, you can see a message saying:
Could not get preview image information. Please check your connection and try again.
This can signify some of the settings have been made incorrectly. Thus, if you have linked to a YouTube video, try to use the YouTube ID only (it’s displayed after v= in the URL).