Audio Mode for iOS
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.
Set AVAudioSession to Play Audio
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
AppDelegate
Note: When the video is finished, you may return the initial category value as follows:
For more information about AVAudioSession
see Apple’s Doc
Have Questions or Need Help?
Check out the Kaltura Player SDK Forum page for different ways of getting in touch.