私はこのコードを使ってこの機能を行っています。
if (videoavailable) {
cell.Videoplayview.hidden=YES;
[cell.ImageUploadedimageview sd_setImageWithURL:[NSURL URLWithString:[[allpostdataarray objectAtIndex:indexPath.section] objectForKey:@"post_image"]] placeholderImage:[UIImage imageNamed:@"placeholder.png"]];
}else{
cell.Videoplayview.hidden=NO;
NSString *path = [[allpostdataarray objectAtIndex:indexPath.section] objectForKey:@"post_video"];
NSURL *videoURL = [NSURL URLWithString:path];
moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
[moviePlayer.view setFrame:CGRectMake(0,0, cell.ImageUploadedimageview.frame.size.width , cell.ImageUploadedimageview.frame.size.height)];
[moviePlayer prepareToPlay];
[moviePlayer play];
[cell.Videoplayview addSubview:moviePlayer.view];
}
おかげサンジャイ、その参考になっ.. –