title: How can I stream Youtube videos in my Roku Channel?
body: <p>I am trying to create a Roku channel that could stream video content from a Youtube Channel.</p>
  
  <p>I am aware of a Linux command-line program (youtube-dl) that can let me programmatically download videos that I can potentially reference via Youtube video ids obtained by the Youtube API results. My issue with youtube-dl is that I am not sure if using it in conjunction with the Youtube API is in compliance with YouTube's terms of service.
  (<a href="https://developers.google.com/youtube/terms" rel="nofollow">https://developers.google.com/youtube/terms</a>). 
  If the above can legally be done, then my problem is solved.</p>
  
  <p>I am not aware of any other way that I can use the Youtube API to get raw mp4 files or any other supported format (in the Roku player) that I can easily stream in the Roku channel that I am building. </p>
  
  <p>Also, Roku does not support either Flash or HTML5 so I cannot really embed a Youtube video URL like in a web page, but Youtube has their own Roku channel, so I am sure there is a way to do this (maybe not to available to developers).</p>
  
  <p>I am also aware of an app called Plex that can let a user import Youtube videos into their Roku. (This requires the user to install a plugin into their browser)
  <a href="https://www.youtube.com/watch?v=k9OaezB3zas" rel="nofollow">https://www.youtube.com/watch?v=k9OaezB3zas</a>.
  (I am not sure if the content of the Youtube video is being copied by Plex or if they are streaming directly from Youtube).</p>
  
  <p>The media types supported by Roku are:</p>
  
  <p>Video — MKV (H.264), MP4 (H.264), MOV (H.264), WMV (VC-1, firmware 3.1 only)
  Music — AAC, MP3, WMA, FLAC (firmware 5.3 and later), WAV (firmware 5.3 and later)
  Photo — JPG, PNG, GIF (non-animated)</p>
  
  <p>Thanks.</p>