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

MPVolumeView Dynamic Width

Im trying to do something very simple. Have a slider for volume that changes in width based on the devices' size or orientation. - (void)viewDidLoad { [super viewDidLoad]; [self setUpVolumeView]; } - (void) setUpVolumeView { // Volume…
redribben
  • 186
  • 1
  • 7
0
votes
1 answer

MPVolumeView does not work in ios 8

I want to change volume of played movie. As I've understand that I have to use MPVolumeView, and the next code perfectly worked in ios 6.1 (tested on ipod touch 4g), but does not work on ios 8.1 (simulator Version 8.1 (550.3)) - volume slider does…
slavik
  • 1,341
  • 2
  • 11
  • 16
0
votes
0 answers

display volume view/ MPVolumeView iphone-sdk

I have developed a video player application and I am also changing the volume of music player from my application. So I want to display default volume change view/indicator when volume is change from my application. So please suggest. I am using…
Mitesh Khatri
  • 3,935
  • 4
  • 44
  • 67
0
votes
0 answers

Change AVPlayer Volume

So I am streaming a video file with audio using AVPlayer and have a UIWebView overlayed over the video that has controls for play/pause, seek, ect. I also have a slider for volume that I am trying to implement but so far I haven't had any luck. Here…
Pat
  • 649
  • 1
  • 8
  • 24
0
votes
1 answer

MPVolumeVew slider not touch responsive

I am building radio APP, I have added UIView to my ViewController and changed its class to MPVolumeView. The slider appears when I test it on my device but is non-responsive to touch gestures. What's weird is that it responds to hardware change with…
EmilDo
  • 1,177
  • 3
  • 16
  • 33
0
votes
2 answers

Hide volume bar in movie player

How can I hide the volume bar in movie player and keep the other controls are appear (play, forward ... ) ? I want to show some videos that haven't any sounds, so the volume bar is totally will be useless. can I do this ? Thanks in advance
0
votes
1 answer

iOS - Showing airplay button for my game app

I'm creating iPhone app for kids which they can play with alphabets and numbers. I want to providing the option for airplay so that playing on bigger screen will be more fun. I'm using the following code to show the airplay button: MPVolumeView…
Satyam
  • 15,493
  • 31
  • 131
  • 244
0
votes
2 answers

App audio volume

I need the user to control the device's media volume. I've seen many solutions using volume view or AVAudioPlayer, but I want to use the device volume buttons to set the app volume, like many apps have. Thanks!
douglasd3
  • 761
  • 2
  • 10
  • 27
-1
votes
1 answer

How to access MPVolumeView in my app delegate applicationWillTerminate?

EDIT: It is appearing that there may not be ANY possible way to, on app termination only, set the device volume back to the level it was when an app started. To me this is a possible oversight on the part of Apple. Why wouldn't Apple want my app…
KiloOne
  • 312
  • 1
  • 6
  • 20
-2
votes
1 answer

How to control iPhone System volume?

I am trying to control iPhone System volume from my iOS App using Swift. I am following this below link but I can't do it. https://github.com/ioscreator/ioscreator/tree/master/IOS8SwiftVolumeTutorial/IOS8SwiftVolumeTutorial After using this I am…
Md. Sujan
  • 49
  • 1
  • 6
1 2 3
9
10