title: Play video from any folder
body: <p>i know this has been a part of many topics, but i want to play a downloaded movie elsewhere than in resource (particularly in the application support folder)</p>
  
  <p>i use :</p>
  
  <pre><code>    NSString * html = [NSString stringWithFormat:@"&lt;video src=\"%@.%@\"&gt;Alt Text&lt;/video&gt;", self.file.uid, self.file.extension];
      NSURL * base = [NSURL fileURLWithPath:[DocumentsModel pathToStorageDirectory]];
  
      self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 412.0)];
  
      [self.webView setOpaque:NO];
      [self.webView loadHTMLString:html baseURL:base];
  </code></pre>
  
  <p>The value of HTML is       </p>
  
  <pre><code>    &lt;video src="9812.mp4"&gt;Alt Text&lt;/video&gt;
  </code></pre>
  
  <p>The value of base is           </p>
  
  <pre><code>    &lt;CFURL 0x7bd9c00 [0x2478b38]&gt;{type = 15, string = file://localhost/Users/peterpaulis/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/C0831A31-048A-4402-9638-696CC085C17B/Library/Application%20Support/tproj/Storage/, encoding = 134217984, base = (null)}
  </code></pre>
  
  <ul>
  <li><p>note that the file exists at </p>
  
  <p>file://localhost/Users/peterpaulis/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/C0831A31-048A-4402-9638-696CC085C17B/Library/Application%20Support/tproj/Storage/9812.mp4</p></li>
  </ul>
  
  <p>and is ok</p>
  
  <p>but no playback is done</p>
  
  <p>i also tryied</p>
  
  <pre><code>&lt;video id="player" width="480" height="320" src"..." webkit-playsinline&gt;
  
  self.webView.allowsInlineMediaPlayback = YES;
  </code></pre>
  
  <p>but the result is the same, the video doesn't show up</p>