Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Youtube Gallery

Last updated on
5 July 2022

Managing Videos On YouTube Gallery

As content grows, it’s not only pages and text, it also grows in the number for videos. Many businesses upload the videos on YouTube. One of the challenges an organization faces is to sync videos posted on YouTube channel to the website. Businesses either has to write custom code/module or do it manually.

We’re addressing this challenge by building a module to enable an administrator or user to sync/manage videos. After the module is downloaded and configured, a user with just a few clicks can retrieve all the Youtube channel videos to the website. With the help of this module, you need to upload videos only once on YouTube. For uploading in websites, you only have install YouTube gallery module and set some configuration. It will automatically retrieve all videos with respect to any channel to your Drupal 8 website.

Why to upload videos to YouTube ?

YouTube is by far the default and leading video channel used by businesses. So it’s better to upload videos to YouTube rather than Drupal 8 website. If we upload videos directly to website, it will take time to retrieve and also put pressure on server. How to setup

How This Module Works?

This module uses the YouTube Data API for retrieving the youtube videos.

For retrieving YouTube video we hit YouTube Data Api Url like:

http://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults={ max_result } & playlistId={ channel_id } & key={ Api Key }

For more details visit: https://developers.google.com/youtube/v3/docs/

After successful installation of Module, you are able to see following screenshot for Youtube Gallery configurations.

1. YouTube Channel Information: displays information about current configuration that we have configured. Please do check below image.

 

2. Configuration: For configuring YouTube channel, we require API Key of Google account, channel id for displaying all videos of any channel, number of videos for managing listing of videos.

After installation, it will create block in Drupal 8 website. So, if you want to list all videos of any YouTube channel then you need to assign to any region. Please do check below image, we have assigned block to left sidebar.

You can download this module from https://www.drupal.org/project/youtube_gallery/

Tags

Help improve this page

Page status: No known problems

You can: