/// <summary> /// Causes the VOIP app to be handled at a higher priority /// WWDC 2016 15:54 /// </summary> /// <param name="provider"></param> /// <param name="audioSession"></param> public override void DidDeactivateAudioSession(CXProvider provider, AVFoundation.AVAudioSession audioSession) { Console.WriteLine("CXProviderDelegate: DidDeactivateAudioSession "); // End the calls audio session and restart any non-call // related audio }
/// <summary> /// Causes the VOIP app to be handled at a higher priority /// WWDC 2016 15:54 /// </summary> /// <param name="provider"></param> /// <param name="audioSession"></param> public override void DidActivateAudioSession(CXProvider provider, AVFoundation.AVAudioSession audioSession) { Console.WriteLine("CXProviderDelegate: DidActivateAudioSession "); // The application needs to use this method to signal the SDK to start audio I/O // units when receiving the audio activation callback of CXProviderDelegate. TwilioVoice.SharedInstance.StartAudioDevice(); }
public override void DidDeactivateAudioSession(CXProvider provider, AVFoundation.AVAudioSession audioSession) { // End the calls audio session and restart any non-call // related audio }
public override void DidActivateAudioSession(CXProvider provider, AVFoundation.AVAudioSession audioSession) { // Start the calls audio session here }