I'm working on iOS app which can play video. It's using avplayer but it doesn't show volume indicator view when user press physical volume key like below image. I think it's system indicator view. How could I force app to show this? Thanks for you help
Asked
Active
Viewed 559 times
1

RayChen
- 1,417
- 2
- 17
- 36
-
1Try this answer:http://stackoverflow.com/questions/24444376/hide-device-volume-hud-view-while-adjusitng-volume-with-mpvolumeview-slider – user523234 Jul 30 '15 at 07:19
-
I want to show the hud view and now I already add MPVolumeView and set showsRouteButton to yes and showsVolumeSlider to no. – RayChen Jul 30 '15 at 07:53
-
That above link would do the exact opposite of what you want. To make it fit I would call sizeToFit as this link does: http://stackoverflow.com/questions/12236636/adding-mpvolumeview-programmatically-in-app – keji Jul 30 '15 at 12:59
1 Answers
1
The answer Hide device Volume HUD view while adjusitng volume with MPVolumeView slider is correct. I have one MPVolumeview in player view and size is zero. Remove it or give it a appropriate size will fix this