我正在使用Movie Player在我的iPod中查看视频流。但视频总是比屏幕大。我如何调整视频大小?我试图在很多地方放置框架尺寸,但没有成功..
我感谢所有的提示和帮助。
答案 0 :(得分:0)
试试这个
MPMoviePlayerViewController * moviePlayerVC = [[MPMoviePlayerViewController alloc]initWithContentURL:Video URL String];
moviePlayerVC.moviePlayer.allowsAirPlay = YES;
moviePlayerVC.view.frame = CGRectMake(10, 50, 300, 300);
moviePlayerVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self.view addSubview:moviePlayerVC.view];