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

Add MPVolumeView to bottom toolbar

I am trying to add an instance of MPVolumeView to the bottom bar of my navigation controller.(the box for toolbar is ticked) I do not get any errors with my code, but when I run the project on my device the volume slider is not showing. Thanks in…
EmilDo
  • 1,177
  • 3
  • 16
  • 33
1
vote
1 answer

Default MPVolumeView Style

Why iOS 6 SDK still uses old MPVolumeView control's style. I want to use default style like in Apple's Default Music application. Old one: New one: Is there any way to use new one in my project? Thank you!
nesimtunc
  • 849
  • 7
  • 28
1
vote
1 answer

AVPlayer, MPVolumeView and Volume HUD

I'm using an AVPlayer to play various medias. I redesigned the whole player interface and I added a MPVolumeView to control output level. It works just fine, either with the slider or with the volume buttons (yje output volume is changed), but the…
Khal
  • 790
  • 5
  • 23
0
votes
2 answers

Error in xcode when i try to compile using a MPVolumeView

xcode gives me that error: Undefined symbols for architecture i386: "_OBJC_CLASS_$_MPVolumeView", referenced from: objc-class-ref in VolumeViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
0
votes
0 answers

MPVolumeView block main thread

I get this problem from online app not responding report, call stack cases as below: case 1: AVAudioSession create sharedInstance MediaPlayer -[MPAVLightweightRoutingController initWithName:] + 204 AudioSession +[AVAudioSession sharedInstance] +…
John
  • 65
  • 9
0
votes
1 answer

How to use MPVolume View correctly?

-This was my Question: This is an audio player, I removed all the other lines for you to be easy in reading. The problem is in MPVolumeView. When user swipes all the way to maximum the button of the slider hovers over the connectivity button. When…
Vugar
  • 31
  • 7
0
votes
0 answers

MPVolumeView slider disappears on AirPlay

After I`m activating AirPlay MPVolumeView slider disappears without any ability to have on-screen slider to control the volume. (it happens when I'm connecting to Mac, with AirPods slider is fine). How can I prevent slider disappearance ?
Max
  • 43
  • 2
  • 8
0
votes
0 answers

What is the View Hierachy and how can I add a MpVolumeView to it?

I'm attempting to add a mpvolumeview to my app to allow to select an output channel, however I'm struggling to understand the documentation. By view Hierachy, I'm assuming that this is just this, where I've set the class to MpVolumeView, however it…
Greg
  • 476
  • 9
  • 23
0
votes
1 answer

Can I control slider value programmatically?

I have used following code for (UIView *view in [volumeView subviews]){ if ([[[view class] description] isEqualToString:@"MPVolumeSlider"]) { volumeViewSlider = (UISlider *) view; } } //[volumeViewSlider…
Programmer mind
  • 3
  • 1
  • 1
  • 7
0
votes
1 answer

How can i make sound on and off using my native iPhone Application?

I want to make sound On and Off thru my Native iPhone Application so please give me some suggestion for doing that.It's only up to my Native application.
Ankit Vyas
  • 7,507
  • 13
  • 56
  • 89
0
votes
1 answer

iPhone setting sound volume for playing sounds for app only

i currently wonder how to a) Play a sound next to iPod/Other music sources b) beeing able to control the volume of that played sound (only) c) **important** both combined!! d) all of it also on background/mt I am able to do both sepperate by using…
thedanielhanke
  • 730
  • 1
  • 6
  • 22
0
votes
0 answers

How to detect Volume Button Press (+/-) in iOS after volume has reached maximum or minimum?

I am trying to detect when a user presses the volume up/down button on an iOS device. I am not trying to change the system volume in my application, but instead the volume of a speaker that the user is connected to, so I don't need to modify the…
Richa Netto
  • 305
  • 2
  • 4
  • 8
0
votes
1 answer

Using MPVolumeView, my thumb image shows up underneath the default thumb image using setVolumeThumbImage

I am using an MVVolumeView and I am trying to place the default thumb image with my own. I have a 25 pixel RED square asset that I named VolumeButtonRed.png to test this procedure. Here is the code where I try to change the thumb image on the…
KiloOne
  • 312
  • 1
  • 6
  • 20
0
votes
1 answer

MPVolumeView Isn't show speaker option on iPad

I'm using MPVolumeView class for switch between audio outputs. In iPhone, you have 2 options on start (iPhone and speaker) and in iPad you have only 1 option (speaker) But when you connect headphones on iPad there aren't speaker options only…
Yair hadad
  • 437
  • 3
  • 17
0
votes
1 answer

How to remove volume HUD on Xamarin Forms?

I have made a customrenderer to render a MPVolumeView inside of a xamarin.forms app. Whenever I adjust the volume, I get this big system HUD on screen that is blocking the content on screen. Looks something like this: How do I remove this? This is…
Luca Panjer
  • 125
  • 2
  • 11