0

我有一个应用程序,我正在使用MPMoviePlayerController自定义控件播放视频。我正在添加一项功能,以便用户可以在 Apple TV 中镜像播放,为此我已经实现了以下代码。

MPVolumeView *volumeButton = [[MPVolumeView alloc]   initWithFrame:CGRectMake(80.0, 210.0, 160.0, 40.0)];
volumeButton.showsVolumeSlider = NO;
volumeButton.showsRouteButton = YES;
[self.view addSubview:volumeButton];  

但 Airplay 按钮在 iOS 8 中不可见。有没有办法在其中显示 Airplay 按钮MPMoviePlayerController

请提供您的建议和宝贵意见。

4

0 回答 0