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
か?
あなたの提案と貴重な情報を提供してください。