Skip to content

Upload to YouTube

Muaz Khan edited this page May 23, 2017 · 2 revisions

This wiki-page explains how to upload recorded "blobs" to youtube.com.

This wiki page is part of following demo:

https://github.com/muaz-khan/RecordRTC/blob/master/index.html

Login to Google console

Please go to this page, and search for youtube:

Buy/enable/create youtube-data-API

Set/enable oAuth for your domain

Use your own YouTube oAuth clientid

Now search for data-clientid on the index.html demo file. You will see this youtube clientid: 41556190767-7amutgh7ug0dfkkeb9fkrpt8j86rv5o3.apps.googleusercontent.com

Replace text -------[Your_Unique_OAuth_ID_for_YouTube_API_usage]------- with real youtube clientid (in the below snippet).

<span 
      class="g-signin" 
      data-callback="signinCallback" 
      data-clientid="-------[Your_Unique_OAuth_ID_for_YouTube_API_usage]-------" 
      data-cookiepolicy="single_host_origin" 
      data-scope="https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube">
</span>