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

How to tie Voiceover into an MPVolumeView slider?

I created an MPVolumeView slider in Interface Builder to adjust the audio volume (code below): import UIKit import MediaPlayer class StreamVolumeTableViewCell: AudioStreamTableViewCell { static let identifier = "StreamVolumeTableViewCell" …
Manelion
  • 167
  • 9
0
votes
1 answer

MPVolumeView Slider Unresponsive

This is cute ... I've copied the code from Apple's docs -- adding the lines about isUserInteractionEnabled for good measure -- but my MPVolumeView slider is totally unresponsive when I try and drag it. It does move appropriately when I click the…
Michael Rogers
  • 1,318
  • 9
  • 22
0
votes
1 answer

AirPlay icon is disappearing on when user disconnect the external playback

I am using airplay icon and volume slider in app. Once user connect the airplay video is casting to the appleTV and volume slider is getting hide(as expected).Now navigate back to previous page and again come to player page to play video when…
0
votes
1 answer

AVPlayer / Airplay Button

How do I show a button on an AVPlayer layer allowing a user to opt into AirPlay? In the old days, I would simply add an MPVolumeView as a subview, and this would show an airplay button that a user could use to toggle. Now, it seems like a volume…
StevenOjo
  • 2,498
  • 1
  • 16
  • 21
0
votes
0 answers

Wrapping an MPVolumeView inside 2 Stack Layouts (Xamarin.IOS)

I am creating a control based on a generic View that works with a custom renderer based on an iOS MPVolumeView, which is the simple control that allows you to select an alternate output route for audio in your app (i.e. Bluetooth Speaker). The code…
Chet at C2IT
  • 549
  • 6
  • 21
0
votes
1 answer

Change volume of MPMusicPlayerController without changing system volume

My app has a feature to play system music player's music and it has it's own audio too. When music player's music is playing and app's audio will begin to play, I have to decrease the music player volume without affecting app's volume. I am…
Arnab
  • 4,216
  • 2
  • 28
  • 50
0
votes
1 answer

Adjusting the Volume using MPVolume for a music player, iOS

I am trying to figure out how to change the volume of a music track being played and I am using MPMusicPlayerController to import a song from the Music library. I have tried to use MPVolume by adding a UIView and subclassing it to MPVolume. But it…
Gugulethu
  • 1,426
  • 3
  • 18
  • 36
0
votes
1 answer

How to change the volume in iOS9?

This code works fine in iOS 8.0 devices, but in iOS 9.0 always getting slider value as 0.000... (void) volumeUp{ MPVolumeView * volumeView = [[MPVolumeView alloc] init]; //find the volumeSlider UISlider* volumeViewSlider = nil; for (UIView *view…
Mitoman
  • 1
  • 1
0
votes
1 answer

How to AirPlay audio to multiple AirPlay devices from an iOS device?

Normally only one AirPlay device is selectable in the MPVolumeView when playing audio. However it seems that it is possible to AirPlay to multiple devices since Whaale iOS app does. How might the Whaale app stream to multiple devices? (I don't care…
Steve Moser
  • 7,647
  • 5
  • 55
  • 94
0
votes
0 answers

Mute volume smoothly on iOS

I mean sound should play briefly, then mute. I have a program for iPad which plays video and I need to smoothly mute volume when pressed and hold "volume down" button on device, or when we exit video while it playing.
mgv
  • 347
  • 1
  • 3
  • 9
0
votes
1 answer

How to get the volume of the music/audio playing on an IOS device?

I am trying to get the volume of the music playing on an IOS device, but not the system volume. I'm not sure if "music volume" is the right term though. You can have a constant system volume when a song is playing but the music will still sound…
0
votes
0 answers

How to show Airplay button in MPMoviePlayerController iOS 8

I have an app in which I am playing a video using MPMoviePlayerController with custom controls. I'm adding a feature so that users can mirror the play back in Apple TV for this i have implemented the following code. MPVolumeView *volumeButton =…
Manikandan
  • 107
  • 2
  • 12
0
votes
0 answers

AirPlay View in YTPlayerView doesn't appear

I'm using YTPlayerView (YouTube helper library) in my iOS application and according to requirements, I've made custom controls for airplay, share, play etc. For that I've hidden the default controls of YTPlayer using "control" tag. The problem I'm…
Fayza Nawaz
  • 2,256
  • 3
  • 26
  • 61
0
votes
0 answers

How to make Circular MPVolumeView

I'm trying to find a way around standard MPVolumeView. I can customize slider min\max image, but is there a way to make it circular? in swift, please like this (but without number in the middle and border)?
animekun
  • 1,789
  • 4
  • 28
  • 45
0
votes
1 answer

Using MPVolumeView with MPMoviePlayerController in Swift

I'm trying to use the MPMoviePlayerController to play an audio stream. It is actually working and it is quite pleasing. However, I would like users to be able to control the volume with a slider. I've searched a lot, and most people are using…
alexbredikin
  • 133
  • 2
  • 14
1 2 3
9
10