Enable the Youtube API:
- On the left side menu of the Google Cloud console, click: APIs
- Find the link for YouTube Data API
- On the next screen, click on the blue “Enable API” button
Generate an API key:
- From the same left panel, click: APIs & Auth -> Credentials
- Click the blue “Create New Key” button
- From the popup, click the “Server Key” button
- Find the IP address of the server using this key and add it to the Text Field, then click the blue “Create” button
- Copy the value next to the “API Key” label
Putting the key on the server:
- Inside the file: /edx/app/edx_ansible/server-vars.yml
- add the line: EDXAPP_YOUTUBE_API_KEY: ‘key_you_just_generated’
- run: /edx/bin/update edx-platform appsembler/branch/name
If done correctly, Youtube videos will continue to play correctly using API V3. This is necessary for all sites running after 7/31/15
If you don’t make this change on a particular server, I think the video will still load and play, but there will be swirling icon in the middle of the video that doesn’t go away.