In order to add a video content to a product in Magento 1.x, you needed to create a separate module or an attribute. In Magento 2 it is much easier. This functionality has been added to a default functions set.
Let’s take a look into how to add a video from YouTube service.
At first place you should generate API in order to use YouTube functions. Open your YouTube account following this link.
Let’s create a new project.
Enter the API section.
Select API Youtube and activate it.
Generate a key.
After that, open Magento admin panel and save the key.
Now you can add YouTube video content for your products. Enter product page in the admin panel and select Images and Videos.
And enter the link to the video content that you would like to add.