Exemplo n.º 1
0
        /// <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
        }
Exemplo n.º 2
0
        /// <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();
        }
Exemplo n.º 3
0
 public override void DidDeactivateAudioSession(CXProvider provider, AVFoundation.AVAudioSession audioSession)
 {
     // End the calls audio session and restart any non-call
     // related audio
 }
Exemplo n.º 4
0
 public override void DidActivateAudioSession(CXProvider provider, AVFoundation.AVAudioSession audioSession)
 {
     // Start the calls audio session here
 }