Skip to content

Instantly share code, notes, and snippets.

@zapsleep
Created December 13, 2012 07:36
Show Gist options
  • Save zapsleep/4274801 to your computer and use it in GitHub Desktop.
Save zapsleep/4274801 to your computer and use it in GitHub Desktop.
AirPlay button adding to player's interface
-(void)addAirPlayButtonToPlayerView:(UIView *)playerView {
//change the rectForAirPlay below to whatever you need
MPVolumeView *airPlayButton = [[MPVolumeView alloc]
initWithFrame:rectForAirPlay];
airPlayButton.showsVolumeSlider = NO;
[playerView addSubview:airPlayButton];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment