Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to simulate multiple audio outputs for the iPhone and/or the simulator?

I have the following code, but it doesn't display the route button.

MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:CGRectZero];
volumeView.showsRouteButton = YES;
volumeView.showsVolumeSlider = NO;
[volumeView sizeToFit];
[self.view addSubview:volumeView];
[volumeView release];

In the documentation I read:

The route button is visible by default when there is more than one audio output route available.

I only have one audio output, so the button doesn't show. Is there any way to simulate multiple audio outputs so that I can test this button?

like image 543
Erik B Avatar asked Nov 14 '22 01:11

Erik B


1 Answers

You can use AirPlayer (a Mac Application) to simulate an Apple TV. This should cause the AirPlay button to appear in the simulator. Although it claims to not work with audio, the AirPlay button may still show up.

like image 85
Jonathan. Avatar answered Jan 02 '23 20:01

Jonathan.