title: Play Mp4 and Mp3 file while downloding
body: <p>I want to play a audio and video file i dont have the URL of these file. I am downloading the file right now using AFNetwork and the file data is coming is bytes form.</p>
  
  <pre><code>[operation setDownloadProgressBlock:^(NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) 
  {
       float val = (float)totalBytesRead / totalBytesExpectedToRead;
       if(!isStart &amp;&amp; val &gt;= 0.5)
       {
          isStart = YES;
  
          UIWindow *window = [UIApplication sharedApplication].keyWindow;
  
          window = [[UIApplication sharedApplication].windows objectAtIndex:0];
              UIWebView * webView = [[UIWebView alloc]initWithFrame:window.frame];
              NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL fileURLWithPath:path]];
  
              [webView loadRequest:urlRequest];
              [window addSubview:webView];
         }
  }];
  </code></pre>
  
  <p>But the UIWebView is not opening this file I also used MPMoviePlayer but nothing happen.
  Please tell me if this possible partially downloaded file.</p>