Follow

Integration with YouTube CMS

Enable integration

To integrate your  Samba Videos project with YouTube CMS is quite simple. Watch the video below.

#tips: It's necessary to correctly configure and test the YouTube CMS account first, and then create the configuration with Samba Videos.

How to configure in Samba Videos?

To share videos with Youtube CMS,  Samba Videos uses SFTP method. Learn more.

Access credentials

Dropbox username:  - In this field you must enter the same username configured on YouTube CMS. 

Private Key - SSH private key. 

XML Templates

Templates for metadata configuration, video copyright complain, and  YouTube CMS usage and correspondence policies definitions. Learn more.

To allow Samba Videos to share a video in YouTube CMS, we have defined some mandatory variables that will be replaced by video metadata at the time of sharing. These variables must be in the XML template (e.g. ${media.id}). We also have defined some field that must be replaced according to YouTube CMS account data (e.g. NOTIFICATION_EMAIL). Other settings must be defined by user, following Youtube CMS standards Learn more.

Integration Template Example

<?xml version="1.0"?>

 <!—NOTIFICATION EMAIL -->

     <feed xmlns="http://www.youtube.com/schemas/cms/2.0" notification_email="NOTIFICATION_EMAIL" strict="True">

     <asset type="web">

<!—VIDEO METADATA -->

     <custom_id>${media.id}</custom_id>

     <description>${media.description}</description>

     <notes></notes>

<!—VIDEO METADATA -->

    <title>${media.title}</title>

<!—WEBSITE NAME -->

<url>WEBSITE</url>

  </asset>

  <!-- define reference files -->

  <file type="video">

<!—VIDEO METADATA -->

    <filename>${media.filename}</filename>

  </file>

  <!-- define the video metadata -->

  <video>

    <allow_comments>Approve</allow_comments>

    <allow_embedding>True</allow_embedding>

    <allow_ratings>True</allow_ratings>

    <allow_responses>Approve</allow_responses>

<!—VIDEO METADATA -->

    <start_time>${media.publish.start_time}</start_time>

    <public>True</public>

<!— YOUTUBE CHANNEL NAME -->

    <channel>YOUTUBE CHANNEL NAME</channel>

<!—VIDEO METADATA -->

    <title>${media.title}</title>

    <description>${media.description}</description>

    <genre>${media.genre}</genre>

    ${media.tags}

  </video>

  <!-- connect all of the video files in the feed to the movie asset -->

  <relationship>

    <item path="/feed/asset[1]" />

    <related_item path="/feed/file[1]" />

  </relationship>

  <relationship>

    <item path="/feed/video[1]" />

    <related_item path="/feed/file[1]" />

  </relationship>

  <!-- Rights administration rules are the same as ownership -->

  <rights_admin type="usage" owner="True"/>

  <rights_admin type="match" owner="True"/>

  <rights_policy>

      <rule action="monetize" />

  </rights_policy>

  <!-- Worldwide ownership for the asset -->

  <ownership asset="/feed/asset[1]">

<!—YOUTUBE CMS ACCOUNT -->

    <owner type="partner" name="YOUTUBE CMS ACCOUNT" />

  </ownership>

  <!-- Claim the video and set a usage policy to a saved policy. -->

  <claim type="audiovisual"

      asset="/feed/asset[1]"

      video="/feed/video[1]"

      rights_admin="/feed/rights_admin[1]"

      rights_policy="/feed/rights_policy[1]"/>

  <relationship>

    <item path="/feed/rights_admin[1]" />

    <item path="/feed/rights_policy[1]" />

    <related_item path="/feed/asset[1]" />

  </relationship>

</feed>

Edition Template Example

  <?xml version="1.0"?>

 <!—NOTIFICATION EMAIL -->

<feed xmlns="http://www.youtube.com/schemas/cms/2.0" notification_email= EMAIL_NOTIFICAÇÃO strict="True">

 <!—VIDEO METADATA -->

<!-- Fix a typo in the title of an existing external asset. -->

<asset type="web" id="${media.youtube.asset.id}">

<description>${media.description}</description>

<notes></notes>

 <!—VIDEO METADATA -->

<title>${media.title}</title>

<!—WEBSITE NAME -->

<url>WEBSITE</url>

</asset>

 

 <!—VIDEO METADATA -->

<video id="${media.youtube.video.id}">

<title>${media.title}</title>

<public>${media.publish}</public>

 

<!— YOUTUBE CHANNEL NAME -->

<channel>YOUTUBE CHANNEL NAME</channel>

 

 <!—VIDEO METADATA -->

<title>${media.title}</title>

<description>${media.description}</description>

<genre>${media.genre}</genre>

${media.tags}

</video>

</feed>

Disable integration

To disable Samba Videos integration with your Youtube CMS  account is quite simple. Watch the video below:

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request