Spielen Mp4-und Mp3-Datei während downloding

Ich spielen möchte, ein audio-und video-Datei habe ich nicht die URL dieser Datei. Ich bin dem Download die Datei jetzt mit AFNetwork und die Daten der Datei kommen wird ist Byte-form.

[operation setDownloadProgressBlock:^(NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) 
{
     float val = (float)totalBytesRead / totalBytesExpectedToRead;
     if(!isStart && val >= 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];
       }
}];

Aber die UIWebView ist nicht dem öffnen dieser Datei habe ich auch verwendet MPMoviePlayer aber nichts passieren.
Bitte sagen Sie mir, wenn dies möglich teilweise heruntergeladene Datei.

InformationsquelleAutor Saad Ur Rehman | 2013-07-08

Schreibe einen Kommentar