AVAudioSession enables you to control the audio on iOS devices even when the silent switch is off. This article describes the steps required to enable you to control the audio output in iOS devices using AVAudioSession.
The AVAudioSession enables you to play audio (essentially any sound) even when the silent switch is off.
- When you begin playing the video, keep the initial category value of AVAudioSession aside.
- Change the actual category value to AVAudioSessionCategoryPlayback as follows:
Note: Should be done on
Note: When the video is finished, you may return the initial category value as follows:
For more information about
AVAudioSession see Apple’s Doc
Check out the Kaltura Player SDK Forum page for different ways of getting in touch.