我有一个带自定义控件的MPMoviePlayerController。我想在此自定义视图中添加一个按钮,该视图将通过AirPlay发送视频。这可能吗?我已经在MPMoviePlayerController上阅读了苹果文档,但没有发现任何内容。
答案 0 :(得分:0)
解决了这个问题:
MPVolumeView *volumeView = [ [MPVolumeView alloc] init] ;
[volumeView setRouteButtonImage:[UIImage imageNamed:@"ICAirPlay"] forState:UIControlStateNormal];
[volumeView sizeToFit];