-1

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 ?

ken
  • 498
  • 1
  • 4
  • 12

1 Answers1

1

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

iOS: Accessing device hardware audio volume control

aBilal17
  • 2,728
  • 2
  • 16
  • 23