I am currently playing an audio file with "MobileVlcKit" and I need to switch to earSpeaker (top speaker for phone calls) in the middle of playing audio file. Currently I am using this code:
AVAudioSession.sharedInstance().overrideOutputAudioPort(.none)
But it keep playing from main speaker. Do anyone knows what is my problem?