如何播放视频从src字段返回的fql查询facebook在iphone



我想通过查询iphone中的facebook视频对象来播放src字段中返回的视频

"src": "http://video.l3.fbcdn.net/cfs-l3-ash4/232135/599/109331539158851_26788.mp4?oh=2693efb2a308c968d5b6d584ab5f6350&oe=4E255800&l3s=20110717030008&l3e=20110719031008&lh=08f7a6ffbdf58953de616", 
"src_hq": "http://video.l3.fbcdn.net/cfs-l3-ash4/232135/599/109331539158851_26788.mp4?oh=2693efb2a308c968d5b6d584ab5f6350&oe=4E255800&l3s=20110717030008&l3e=20110719031008&lh=08f7a6ffbdf58953de616"

你能指出一些示例代码(iphone sdk示例)或现有的应用程序,通过它我可以在我的iphone上播放这个视频?

试试下面这个例子:

MPMoviePlayerController *mediaPlayer = [[MPMoviePlayerController alloc] initWithContentURL:<#movieURL#>];
UIViewController *viewController = [[UIViewController alloc] init];
[viewController.view addSubview:mediaPlayer.view];
[self.navigationController presentModalViewController:viewController];
[mediaPlayer play];

让我知道这是否适合你。谢谢!

最新更新