且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

不以全屏模式播放视频

更新时间:2023-12-06 14:04:28

看着MPMoviePlayerController类转储此处,您可以看到这些公共成员:

Looking at the MPMoviePlayerController class dump here, you can see these public members:

-(BOOL) isFullscreen;  
-(void) setFullscreen:(BOOL)fp8;  

所以很少有机会以窗口模式显示电影。但是,这些成员并非正式提供,可能会有意外行为。这只是一个暗示,我自己没有这样做。请注意,使用未记录的API可能会使Apple从AppStore拒绝您的应用程序。

So there is a tiny chance to show a movie in windowed mode. However, these members are not officialy available and may have unexpected behaviour. This is just a hint, I haven't done it myself. Beware that using undocumented APIs may make Apple reject your application from the AppStore.