-2
[urlDict setObject:urlStr forKey:@“url”];如何在iPhone应用程序中播放网址?
[urlArray addObject:urlDict];
//这里urlArray我得到了波纹管的网址,
http://example.com/somevidya.AVI
如何发挥这个网址在iPhone应用程序?
[urlDict setObject:urlStr forKey:@“url”];如何在iPhone应用程序中播放网址?
[urlArray addObject:urlDict];
//这里urlArray我得到了波纹管的网址,
http://example.com/somevidya.AVI
如何发挥这个网址在iPhone应用程序?
您可以将网址添加到像这样的的MPMoviePlayerController。
MPMoviePlayerController *videoPlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
然后模态呈现它像这样:
[[UIApplication sharedApplication].keyWindow.rootViewController presentModalViewController:video animated:YES];
并释放录像机:
[videoPlayer release];
谢谢你的回应,但我可以在iphone应用程序中播放.avi文件 – 2012-01-31 12:29:43
在哪? Objective-C的? – anonymous 2012-01-28 07:14:26