I would like to control volume and mute in iOS app. My app can playback YouTube Video in swift3 and I don't know how to control the video sound.
Does anyone have ideas to do that ?
I would like to control volume and mute in iOS app. My app can playback YouTube Video in swift3 and I don't know how to control the video sound.
Does anyone have ideas to do that ?
You can use MPVolumeView. Just create MPVolumeView and add in subview. This gives you a UISlider for volume. Using that slider you can change the volume.
For reference check the following links.
https://developer.apple.com/documentation/mediaplayer/mpvolumeview