You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MPVolume Hud doesn't disappear with AVPlayerViewController #24
I have a UIViewController with an AVPlayerViewController in it. I disable MPVolume Hud in the ViewController, and it doesn't appear until I play the AVPlayer in the AVPlayerViewController. I know that with
avplayercontroller.showsPlaybackControls = false
the hud disappears, but the problem is that every control disappears, and I need controls, and I prefer to use system controls instead of custom ones.
SubtleVolume works, but when I play the Player controller both the hud and SubtleVolume are visible.
I tried to create a MPVolume and add it to the app window, to the player controller view, but the hud is still visible.
Hey @gianpispi
I'm not sure I understand the issue, what is your desired result?
Consider that SubtleVolume creates internally a MPVolumeView as you can see here.
The volume view can't be completely hidden, or the default volume UI will kick in, so I just hide it with a fraction of alpha, as you can see here
Sorry fro the bad explanation. I add the SubtleVolume to my view controller. It hides the Volume HUD perfectly until I start the AVPlayer into the AVPlayerViewController added as child to my first view controller. When I play the video, and try to change the volume, the hud becomes visible as SubtleVolume does. So I have two volume indicators.
I tried to add a MPVolumeView to the AVPlayerViewController, but it doesn't change anything.
Activity
andreamazz commentedon Feb 19, 2019
Hey @gianpispi
I'm not sure I understand the issue, what is your desired result?
Consider that SubtleVolume creates internally a MPVolumeView as you can see here.
The volume view can't be completely hidden, or the default volume UI will kick in, so I just hide it with a fraction of alpha, as you can see here
gianpispi commentedon Feb 19, 2019
Hey @andreamazz
Thanks for heading back!
Sorry fro the bad explanation. I add the SubtleVolume to my view controller. It hides the Volume HUD perfectly until I start the AVPlayer into the AVPlayerViewController added as child to my first view controller. When I play the video, and try to change the volume, the hud becomes visible as SubtleVolume does. So I have two volume indicators.
I tried to add a MPVolumeView to the AVPlayerViewController, but it doesn't change anything.
andreamazz commentedon Feb 21, 2019
Can you post a screenshot?
If I understand correctly you want the media controls visible, but not the volume bar, right?
gianpispi commentedon Feb 26, 2019
So the problem is this basically: I have both, and the status bar doesn't disappear.
Thank you!