2011-11-17 122 views
0

我的應用程序中有一個UIWebView,它在iOS 4中正確播放視頻,但不在iOS 5中播放。這些是我的視頻鏈接。iOS 5 UIWebview不播放視頻?

1)http://myserverpath/mov015.3gp

NSURL *url = [NSURL URLWithString:self.selectedVideoUrl]; 
    NSURLRequest *req = [[NSURLRequest alloc] initWithURL:url]; 
    [webView loadRequest:req]; 

我也試過,但它也沒有奏效。

player =[[MPMoviePlayerController alloc] initWithContentURL: url]; 
    [[player view] setFrame: [self.view bounds]]; 
    [self.view addSubview: [player view]]; 
    [player play]; 

請幫助我。

+0

從Mobile-Safari訪問時,該視頻播放效果是否良好? – Till

回答

0

.3gp擴展文件不支持ios 5 web視圖。我製作了另外一個擴展名爲.mov的視頻。