【发布时间】:2011-11-17 10:06:50
【问题描述】:
我的应用程序中有一个 UIWebView,它在 iOS 4 中正确播放视频,但在 iOS 5 中不播放。这些是我的视频链接。
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];
请帮帮我。
【问题讨论】:
-
从 Mobile-Safari 访问该视频时可以正常播放吗?
标签: iphone ios uiwebview ios5 mpmovieplayercontroller