MPMoviePlayerController背景颜色不会粘住

我试图改变我的MPMoviePlayerController的背景颜色,我不能让它坚持下去。

我在用着:

moviePlayer.view.backgroundColor = [UIColor redColor]; 

video加载时,我可以看到背景闪烁红色。 一旦加载,背景会再次变黑。 播放开始后,我尝试设置颜色,但没有效果。

我正在使用iOS 5。

编辑:我实际上试图将背景设置为[UIColor clearColor],而不是红色。 我应该首先正确地问我的问题。

不推荐使用MPMoviePlayerController上的MPMoviePlayerController ,并将viewlogging为只读。 请参阅: 不推荐使用的MPMoviePlayerController方法

背景颜色
电影背景区域的颜色。 (可用于iOS 2.0到iOS 3.1。从backgroundView属性获取视图并直接设置其颜色。)

@属性(非primefaces,保留)UIColor * backgroundColor

所以我会尝试使用:

 moviePlayer.backgroundView.backgroundColor = [UIColor redColor];