【发布时间】:2011-10-20 15:43:22
【问题描述】:
我在邮件视图中嵌入了 MPMoviePlayerController。我可以播放/暂停电影并向前/向后搜索。但是当我触摸“全屏按钮”时,电影停止并且播放状态设置为 MPMoviePlaybackStateStopped... 电影应该全屏播放吗?
这是我的代码:
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:videoUrl];
player.shouldAutoplay = NO;
player.movieSourceType = MPMovieSourceTypeFile;
player.controlStyle = MPMovieControlStyleEmbedded;
player.allowsAirPlay = YES;
player.view.frame = CGRectMake(xPos, yPos, width, height);
[self.view addSubview:player.view];
【问题讨论】:
标签: ios mpmovieplayercontroller fullscreen