【发布时间】:2015-05-13 06:37:00
【问题描述】:
self.videoController = [[MPMoviePlayerController alloc]initWithContentURL:url];
if([[UIScreen mainScreen] bounds].size.height>480)
[self.videoController.view setFrame:CGRectMake(0, 44, _viewVideoArea.frame.size.width, _viewVideoArea.frame.size.height)];
else
[self.videoController.view setFrame:CGRectMake(0, 44, _viewVideoArea.frame.size.width, 383)];
[self.viewVideoArea addSubview:self.videoController.view];
[self.videoController prepareToPlay];
[self.videoController play];
以上代码是我对播放器的初始化。播放器未处于全屏模式但未以全屏模式播放时播放大尺寸视频。然后全屏模式下的任何按钮也没有响应(包括完成按钮)。
Link 也试试这个响应完成按钮但不起作用..不知道发生了什么问题。
谁能帮我解决我的问题
【问题讨论】:
标签: ios mpmovieplayercontroller