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
5
votes
1 answer

Core Audio (Audio Units) audio session and MPVolumeView

I work on a VOIP app. I use Core Audio Audio Units for playing and recording audio. I need to be able to manipulate sound volume and output devices. I am trying to use MPVolumeView to set sound volume and choose output devices. My problem is: When I…
user1264176
  • 1,118
  • 1
  • 9
  • 26
4
votes
1 answer

Change the slider of an MPVolumeView

I have a class that extends UISlider (my custom slider) and i want to change the slider in MPVolumeView (MPVolumeSlider) with my custom slider. I can customize the slider in MPVolumeView but i can't change the track rect bounds. I have a custom…
4
votes
0 answers

Tap area of AirPlay button in MPVolumeView

I have a MPVolumeView with AirPlay button. When I tap the AirPlay button in the center of the icon it does not respond. It seems like the tap isn't recognized. When I tap the icon on the right side of the icon the popover is displayed correctly.…
osigge
  • 218
  • 4
  • 13
4
votes
6 answers

How to add the MPVolumeView via Xcode Designer?

I originally added an MPVolumeView dynamically on to a page... #import "MediaPlayer/MPVolumeView.h" . . -(IBAction) handleVolumeButtonClicked:(id) sender { if (volumeView == nil) { volumeView = [[MPVolumeView alloc]…
RobbiewOnline
  • 1,350
  • 1
  • 16
  • 36
4
votes
2 answers

Crash AVFoundation in +[AVOutputContext(FigRoutingContext) currentRoutingContextFactory]

We have crash in AVFoundation. AVFoundation +[AVOutputContext(FigRoutingContext) currentRoutingContextFactory] EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000a3c27beb8 Crashed: Thread 0 libobjc.A.dylib 0x183b8c910 objc_msgSend + 16 1 …
4
votes
1 answer

Qt Android/iOS : How to control device volume in qml

I'm developing an Android/iOS webradio application with Qt Quick in qml. To play my radio stream I use a MediaPlayer qml element and I would like to add a slider to control the volume of the playing music. For now, I've tried to use a slider link…
Julien Chevet
  • 513
  • 5
  • 12
4
votes
2 answers

ios mpvolumeview route button not vertically centered on ios 7.1 update

i am making an app that play audio files. i am showing mpvolumeview which is working fine. but the problem is after i updated ios 7.1 . the route button gone down . see attached image dont know what happened other simple ui slider are ok nothing…
ShujatAli
  • 1,376
  • 2
  • 14
  • 26
4
votes
0 answers

How does MPVolumeView route button work?

I am working on a VoIP app which allows user to select audio source when multiple outputs are available. It's just like the native phone app, when bluetooth speaker is connected, original "Speaker" icon will become "Bluetooth/Speaker" icon where you…
xialin
  • 7,686
  • 9
  • 35
  • 66
4
votes
1 answer

What is the proper frame size of the MPVolumeView control?

When I create an MPVolumeView, what vertical dimensions should I give it for the frame/bounds? It seems like I can give it whatever horizontal dimensions I want and it will scale properly. Is there a range of valid values for this as well? When I…
Senseful
  • 86,719
  • 67
  • 308
  • 465
4
votes
3 answers

MPVolumeView AirPlay button not showing up

Using MPVolumeView I wanted to create an AirPlay output button for the app's audio. MPVolumeView *volumeView = [ [MPVolumeView alloc] initWithFrame:CGRectMake(20, 20, 220, 20)]; [volumeView setShowsVolumeSlider:NO]; [volumeView…
Peter V
  • 2,478
  • 6
  • 36
  • 54
4
votes
2 answers

MPVolumeView thumb image not Centre

I am using MPVolumeView for my App. I have Customized the MPVolumeView but there's a problem as the thumb image of slider not Properly set.
Hitendra
  • 1,610
  • 1
  • 15
  • 22
4
votes
1 answer

How can improve MPVolumeView performance?

i'm working on a iOS project, related with video streamming. One of the controls in the UI is a MPVolumeView. The problem is that when i slide the control for change volume, it seems to use to much CPU. And in fact, the UI becomes slow while i use…
LuisEspinoza
  • 8,508
  • 6
  • 35
  • 57
3
votes
1 answer

MPVolumeView and iOS 5

I am trying to make a slider to control device volume. Previously I have accomplished this with MPVolumeView, but since iOS 5 I get the following error on build: Undefined symbols for architecture armv7: "_OBJC_CLASS_$_MPVolumeView", referenced…
reggian
  • 627
  • 7
  • 21
3
votes
2 answers

AirPlay Meta Data on Apple TV from App (AVPlayer - MPVolumeView)

I have my app successfully streaming an MP3 via AVPlayer. I implemented a MPVolumeView to pull in AirPlay support which works great but I notice that the title info on my apple tv, does not show anything from the streamed MP3 but rather just…
stitz
  • 1,429
  • 1
  • 16
  • 33
3
votes
1 answer

Volume Slider within SwiftUI

How do you get a volume slider working in SwiftUI. Apple's tutorials provide help in regards to incorporating UIKit into a SwiftUI view (https://developer.apple.com/tutorials/swiftui/creating-and-combining-views#create-a-custom-image-view) but…
Jack Vanderpump
  • 216
  • 2
  • 16
1 2
3
9 10