2011-09-14 55 views

回答

1

您可以關閉播放器的標準控件並創建自定義按鈕,以在播放器上調用播放,暫停等。如果將全屏設置爲NO,則可以讓播放器進行任意幀(全屏),並將自定義控件置於頂層。

喜歡的東西:

MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] init]; 
[mp setControlStyle:MPMovieControlStyleNone]; 
[mp setFullscreen:NO]; 
[[mp view] setFrame:CGRectMake(myX, myY, myWidth, myHeight)]; 

[myCustomController setMoviePlayer:mp]; // so controller can send control messages to mp 

[myView addSubview:mp.view]; 
[myView addSubview:myCustomController.view]; 

或任何...

相關問題