title: Get downloadable URL(Resource URL) from DailyMotion Videos & other sites?
body: <p>I need to Download videos from online video hosting sites(i.e. YouTube, DailyMotion, vimeo etc.) to my iOS application.</p>
  
  <p>Recently i am getting video URL from <code>UIWebView</code> as user try to play any video in it. And after getting resource url(url of video which saved at some online path) and try to download it.</p>
  
  <p>i had done it in YouTube by below stuff:</p>
  
  <pre><code>NSString *resourceUrlStr ;
  NSString *urlStr  = @"function getURL() { return document.getElementsByTagName('VIDEO')[0].src; } getURL();";
  
   resourceUrlStr = [myWebViewObject stringByEvaluatingJavaScriptFromString: urlStr];
  </code></pre>
  
  <p>This stuff only works for YouTube videos, Where resourceUrlStr provide me url of video resource.</p>
  
  <p>But when i try this stuff for DailyMotion &amp; other video hosting websites, It doesn't return me resource video url.</p>
  
  <p>Any guesses? Or idea?</p>