title: Save Youtube video to iPhone in the app
body: <p>Playing Youtube video in the app is easy and well documented around.</p>
  
  <p>There are two problems with that: </p>
  
  <ol>
  <li>after closing Youtube player, if user wants to play it again it has to wait for online streaming again</li>
  <li>can't play offline (load video at home to watch on the road)</li>
  </ol>
  
  <p>Does anyone have code to:</p>
  
  <ol>
  <li>download Youtube video to documents folder and show progress of download</li>
  <li>play downloaded video by loading file from documents folder (meaning even when not connected to the internet)</li>
  </ol>