AlexWei
AlexWei

Reputation: 1103

How to get/set iOS stream volume?

In android, ways to get/set stream volume by using AudioManager:

audioManager.getStreamVolume(AudioManager.STREAM_MUSIC)
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,musicVolume,0)

what are equivalents in iOS?

I managed to find categories in AVAudioSessionand system volume But find no way to set/get specific category volume.

Upvotes: 0

Views: 198

Answers (1)

codesleeper
codesleeper

Reputation: 48

Look at this apple documentation MPVolumeView - https://developer.apple.com/reference/mediaplayer/mpvolumeview.

Upvotes: 1

Related Questions