YouTube videos repository: Difference between revisions

From MoodleDocs
(note re it not working)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Repositories}}
{{Repositories}}
==The YouTube repository==


{{Note|The Youtube videos repository does not currently work - see  MDL-50176. In the meantime you can stll add Youtube videos with the embed code.}}
The YouTube repository allows users easily to embed videos from YouTube. It is disabled by default on new installs because it requires an API key.
The Youtube repository allows users to search from within the text editor for a youtube video which they can then embed without the need for any coding. The option needs to be enabled  by the administrator before it is available for teachers and students. ''NOTE: If the Youtube website is blocked in your institution then the videos will not display.''


==Enabling the Youtube repository==
==Enabling the YouTube repository==


*Go to ''Administration>Site administration>Plugins>Repositories>Manage Repositories'';
*Click the Manage repositories link from Site administration.
*Select from the drop down next to Youtube "Enabled and visible";
*Select from the drop down next to YouTube "Enabled and visible".
*If desired,click on "Settings" and give Youtube a customised name (not essential)
*Click on "Settings"  


[[File:youtuberepo15.png]]
[[File:youtubereposettings.png|thumb|center|400px]]


==Searching for and embedding a video from Youtube==
* If desired, give the repository a name. You don't have to; it is OK to leave it blank.
*Youtube videos can be searched for and embedded anywhere there is the text editor, for example a label or a page.
* Click the Google API link which will take you to https://developers.google.com/youtube/v3/getting-started ''(Note that you will need a Google account to proceed.)''
*Before this works, you must enable the multimedia filters under '' Administration>Site administration/Plugins/Filters/Manage Filters''. Set Multimedia Plugins to "On" and make sure youtube is selected under Settings (it should be by default).
*When you have created an account or signed in with an existing account, click https://console.developers.google.com
*Within a course you must ensure in ''Course administration>Filters'' that multimedia are ON.
*Click the plus sign 'Enable API' at the top of the page:
 
[[File:enableapi.png]]
 
*Click 'YouTube data API'
 
[[File:youtubedataapi1.png]]
 
*Click the Enable link (if not already enabled):
 
[[File:enableyoutubedataapi.png]]
 
*Click Credentials in the column on the left and then click the arrow by the blue Credentials link and choose API
 
[[File:apicredentials.png]]
 
*You will be given an API code which you can copy:
 
[[File:createdapikey.png]]
 
*Paste this into the API key box in your Moodle site (Repositories>Youtube) and save.
 
 
The same API key may be used to configure the [[Youtube block]].
 
==Searching for and embedding a video from YouTube==
*YouTube videos can be searched for and embedded anywhere there is the text editor, for example a label or a page.
*Before this works, you must enable the multimedia filters under '' Administration > Site administration/Plugins/Filters/Manage Filters''. Set Multimedia Plugins to "On" and make sure YouTube is selected under Settings (it should be by default).
*Within a course you must ensure in ''Course administration > Filters'' that multimedia are ON.
*Click the filmstrip, "Moodle media icon" in the editor:
*Click the filmstrip, "Moodle media icon" in the editor:


Line 21: Line 49:


*Click "Browse repositories"
*Click "Browse repositories"
*The file picker will appear with Youtube videos as an option. Click it and a search box will appear.
*The file picker will appear with YouTube videos as an option. Click it and a search box will appear.
*You can search by relevance, date, rating or view count. Click the "Search" button when you are ready.
*You can search by relevance, date, rating or view count. Click the "Search" button when you are ready.
*Your search results will appear as video thumbnails.
*Your search results will appear as video thumbnails.


{|
{|
| [[File:youtubesearch.png|thumb|400px|center|Searching Youtube videos]]
| [[File:youtubesearch.png|thumb|400px|center|Searching YouTube videos]]
| [[File:FIlepickerYoutube.png|thumb|400px|center|The search results]]
| [[File:FIlepickerYoutube.png|thumb|400px|center|The search results]]
|}
|}
Line 44: Line 72:
==Repository capabilities==
==Repository capabilities==


There is just one capability, [[Capabilities/repository/youtube:view|Use youtube in file picker]], which is allowed for the default authenticated user role.  
There is just one capability, [[Capabilities/repository/youtube:view|Use YouTube in file picker]], which is allowed for the default authenticated user role.  


==FAQ==
==FAQ==
===The youtube repository is enabled but I still can't see the youtube option in the file picker===
 
*Are you sure you are working with the text  editor? The youtube option allows you to search for and embed youtube videos into the editor in places such as labels or pages. You won't see it simply by clicking the "add" button when uploading a file, for example.
===The YouTube repository is enabled but I still can't see the YouTube option in the file picker===
 
Are you sure you are working with the text  editor? The YouTube option allows you to search for and embed YouTube videos into the editor in places such as labels or pages. You won't see it simply by clicking the "add" button when uploading a file, for example.


[[Category:Multimedia]]
[[Category:Multimedia]]
[[Category:Video]]


[[de:Youtube Video Repository]]
[[de:Youtube Video Repository]]
[[fr:Vidéos Youtube]]
[[fr:Vidéos Youtube]]
[[es:Repositorio de videos de YouTube]]
[[es:Repositorio de videos de YouTube]]

Latest revision as of 22:45, 31 August 2017

The YouTube repository

The YouTube repository allows users easily to embed videos from YouTube. It is disabled by default on new installs because it requires an API key.

Enabling the YouTube repository

  • Click the Manage repositories link from Site administration.
  • Select from the drop down next to YouTube "Enabled and visible".
  • Click on "Settings"
youtubereposettings.png

enableapi.png

  • Click 'YouTube data API'

youtubedataapi1.png

  • Click the Enable link (if not already enabled):

enableyoutubedataapi.png

  • Click Credentials in the column on the left and then click the arrow by the blue Credentials link and choose API

apicredentials.png

  • You will be given an API code which you can copy:

createdapikey.png

  • Paste this into the API key box in your Moodle site (Repositories>Youtube) and save.


The same API key may be used to configure the Youtube block.

Searching for and embedding a video from YouTube

  • YouTube videos can be searched for and embedded anywhere there is the text editor, for example a label or a page.
  • Before this works, you must enable the multimedia filters under Administration > Site administration/Plugins/Filters/Manage Filters. Set Multimedia Plugins to "On" and make sure YouTube is selected under Settings (it should be by default).
  • Within a course you must ensure in Course administration > Filters that multimedia are ON.
  • Click the filmstrip, "Moodle media icon" in the editor:

Moodlemediaicon.png

  • Click "Browse repositories"
  • The file picker will appear with YouTube videos as an option. Click it and a search box will appear.
  • You can search by relevance, date, rating or view count. Click the "Search" button when you are ready.
  • Your search results will appear as video thumbnails.
Searching YouTube videos
The search results
  • Click on the one you want to select it.*
  • Rename if desired; add the author and license if needed and click "Insert media"

Youtubestep2.png

  • DO NOT WORRY IF YOUR VIDEO NO LONGER SHOWS! You will just get a blue text link at first:

Youtubestep3.png

  • Save it and then it will display.If it still displays as a text link after saving, make sure you have enabled the Multimedia filter as instructed at the top of this page.

Youtubestep4.png

Repository capabilities

There is just one capability, Use YouTube in file picker, which is allowed for the default authenticated user role.

FAQ

The YouTube repository is enabled but I still can't see the YouTube option in the file picker

Are you sure you are working with the text editor? The YouTube option allows you to search for and embed YouTube videos into the editor in places such as labels or pages. You won't see it simply by clicking the "add" button when uploading a file, for example.