我用Movie Player在我的ipod里看视频流。但是视频总是比屏幕大。如何调整视频视图的大小?我尝试过在很多地方设置帧大小,但都没有成功。
我感谢所有的提示和帮助。
发布于 2011-10-05 21:01:14
尝尝这个
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];https://stackoverflow.com/questions/7628690
复制相似问题