我想用我的应用程序从服务器(例如http://www.myname.com/myfile.mov)加载一个文件并用VDO MPMoviePLayer播放它。但是,它使用NSURLconnect连接到该URL。
如何将NSdata类型的数据转换为NSURL以便在VDO中使用
发布于 2009-11-13 15:28:21
不要使用NSURLConnection自己下载数据,只需将URL传递给电影播放器即可。
NSURL *url = [NSURL URLWithString:@"http://www.myname.com/myfile.mov"];
MPMoviePlayerController* theMovie =
[[MPMoviePlayerController alloc] initWithContentURL: url];https://stackoverflow.com/questions/1726670
复制相似问题