Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在ios中的MPMoviePlayerViewController中显示播放器控件_Ios_Video_Uiview_Tableview - Fatal编程技术网

无法在ios中的MPMoviePlayerViewController中显示播放器控件

无法在ios中的MPMoviePlayerViewController中显示播放器控件,ios,video,uiview,tableview,Ios,Video,Uiview,Tableview,我试图在表视图单元格中显示MPMoviePlayerViewController。 我已经在表格视图单元格的didselect方法中初始化了它。问题是我看不到播放器中的控件,如:全屏按钮和其他按钮,如图所示: 有人能帮我如何在播放器控制器中实现这些控件吗? 以下是我在didselect方法中的代码: -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ NSUR

我试图在表视图单元格中显示MPMoviePlayerViewController。 我已经在表格视图单元格的didselect方法中初始化了它。问题是我看不到播放器中的控件,如:全屏按钮和其他按钮,如图所示:

有人能帮我如何在播放器控制器中实现这些控件吗? 以下是我在didselect方法中的代码:

 -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{

NSURL * movieURL = [NSURL URLWithString:@"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"];

self.playerController = [[MPMoviePlayerViewController alloc]initWithContentURL:movieURL];

self.playerController.moviePlayer.movieSourceType = MPMovieSourceTypeFile;
self.playerController.moviePlayer.controlStyle=MPMovieControlStyleEmbedded;


[self.playerController.moviePlayer play];

[self.view addSubview:[self.playerController view]];


}

如果您在表格视图单元格中显示拇指图像,并在全屏上分别使用MPMoviePlayerController显示视频,则会更方便用户。我希望以两种方式显示…在线显示和全屏显示。如果您在表格视图单元格中显示拇指图像,并在全屏上分别使用MPMoviePlayerController显示视频,则会更方便用户显示视频。我想以两种方式显示…在线和全屏