Questions tagged [mpvolumeview]

MPVolumeView is a class from MediaPlayer framework in iOS. Used to present the user with a slider control for setting the system audio output volume, and a button for choosing the audio output route.

When first displayed, the slider’s position reflects the current system audio output volume. As the user drags the slider, the changes update the volume. If the user presses the device volume buttons while sound is playing, the slider moves to reflect the new volume.

If there is an Apple TV or other AirPlay-enabled device in range, the route button allows the user to choose it. If there is only one audio output route available, the route button is not displayed.

When an audio output route that does not support volume control, such as A2DP, is active, the volume slider is replaced with the route name.

145 questions
1
vote
1 answer

Set MPVolumeView slider thumb position as device volume

I use MPVolumeView to generate a horizontal slider which allows me to manage the volume of the audio being played. It works great. However, at initialization, I want the slider takes the position corresponding to volume of the device and not 0.5,…
w3spi
  • 4,380
  • 9
  • 47
  • 80
1
vote
0 answers

How to hide the ringer view in an app?

I know how to hide the volume alert that pops up with the code below, but it doesn't work with the ringer. Is there a way to hide that too? I've searched everywhere and nothing is popping up CGRect rect = CGRectMake(-500, -500, 0, 0); MPVolumeView…
Lehman2020
  • 637
  • 7
  • 22
1
vote
0 answers

Controlling volume on iOS with QML

I'm building a QML application that will play back audio. Ideally I'd like to display the current volume to the user as well as give them a slider to change the volume. On iOS the only way to control volume graphically is with MPVolumeView. Is there…
Tim
  • 4,560
  • 2
  • 40
  • 64
1
vote
1 answer

MPVolumeView route button not consistently displaying

I am using the MPVolumeview in my video overlay to use the route button and connect to airplay. I hide the MPVolume's volume slider. I trying to resize the overlay to include a frame for the route button only if airplay is available. Previously I…
conlaw
  • 23
  • 6
1
vote
1 answer

Customising MPVolumeView's high volume warning on iOS

Background A few iOS versions back Apple introduced a warning when trying to increase volume beyond a certain point while headphones are connected. From what I have read, this is due to EU health & safety recommendations, and is only seen on devices…
Stuart
  • 36,683
  • 19
  • 101
  • 139
1
vote
1 answer

Custom mpVolumeView also showing default track and thumb in iOS 8

I've just updated an app from Xcode 5 to Xcode 6 with no changes and no issues. However, when running the app on an iOS 8 device, my custom mpVolumeView now has the operating system default track and thumb overlaying my custom track and thumb. My…
1
vote
0 answers

Elements in the view controller are loading slowly

When I present my view controller the elements(Imageview, buttons, slide, MPVolume view) are loading slowly. First of all empty screen comes up and elements are loading one by one.. What should be the reason for this?
jailani
  • 2,260
  • 2
  • 21
  • 45
1
vote
1 answer

MPVolumeView customization issues

I am working on a radio application, and need to customize the volume tracker colors. myVolumeView = [[MPVolumeView alloc] initWithFrame: CGRectMake(26, 292, 268, 23)]; [self.view addSubview: myVolumeView]; for (id current in…
George L
  • 1,673
  • 2
  • 26
  • 39
1
vote
0 answers

iOS7 MPMusicPlayerController Music Fade-In/Fade-Out Effect

I've been using MPMusicPlayerController to play Music within the app, which has no volume slider available to the user. There are instances that I have to fade the music in and out. So far I've been using volume property from…
Gizmodo
  • 3,151
  • 7
  • 45
  • 92
1
vote
0 answers

MPVolumnView ShowVolumeView Animation

In my code ,I need to hide the slider by click ,then show it by click again,but when it show ,i see an animation like the slider width from 0 to its width,may anyone tell me how to show the slider without an animation?
1
vote
1 answer

AirPlay route button is visible but no device list

I am using MPVolumeView to add the airplay button in my app, I am using the following code. myVolumeView = [[MPVolumeView alloc]initWithFrame:CGRectMake(self.view.frame.size.width-130, 25,20,20 )]; [myVolumeView setShowsVolumeSlider:NO]; …
prabhu
  • 684
  • 11
  • 27
1
vote
0 answers

Airplay options are hidden after initialise AudioUnit on iOS

I'm using code from here to init Audio Unit. Problem is that I'm using Airplay (through MPVolumeView) inside my app and notice that just after initialise AudioProcessor (calling: [AudioProcessor alloc] init) all Airplay options are being hidden and…
Idan
  • 9,880
  • 10
  • 47
  • 76
1
vote
2 answers

How to check MPVolumeView's route button is visible

Is there any methods which can check the MPVolumeView's route button is visible on iPad? Now i can access the route button through the below code, but i have no idea why i check the button's hidden, alpha are always 0 whether it's visible or…
Asnor
  • 113
  • 1
  • 3
  • 8
1
vote
1 answer

volume slider has no effect

I am creating a radio streaming app with play, pause and volume slider. I have implemented volume slider using MPVolumeView but unfortunately it is not working. Can any one please let me know the correct code so that the volume slider will work in…
1
vote
2 answers

iOS: Missing audio routes/sources in MPVolumeView

I work on an audio app (using audio units). One of the requirements is to be able to change the audio route from the UI (Earpiece, Speaker, Connected Bluetooth device etc.). I use the MPVolumeView for this. Recently I have a bug with the list of…
Michael Kessler
  • 14,245
  • 13
  • 50
  • 64