Esempio n. 1
0
        private void QuitApplication()
        {
            var dlgRes = MessageBox.Show("Are you sure you want to close VidyoConnector?", "Exit",
                                         MessageBoxButton.YesNo, MessageBoxImage.Question);

            if (dlgRes == MessageBoxResult.Yes)
            {
                Log.Info("Exiting the app... ");
                if (ConnectionState == ConnectionState.Connected)
                {
                    LeaveCall();
                }

                // Unregistering to events we want to handle.
                _connector.UnregisterLocalCameraEventListener();
                _connector.UnregisterLocalWindowShareEventListener();
                _connector.UnregisterLocalMicrophoneEventListener();
                _connector.UnregisterLocalSpeakerEventListener();
                _connector.UnregisterParticipantEventListener();
                _connector.UnregisterLocalMonitorEventListener();

                _connector.Disable();
                _connector = null;

                Log.Info("VidyoConnector disabled.");

                ConnectorPKG.Uninitialize();
                Log.Info("VidyoConnector unitialized.");

                System.Windows.Application.Current.Shutdown();
            }
        }
Esempio n. 2
0
        public void Cleanup()
        {
            _connector.Disable();
            _connector = null;

            // Uninitialize VidyoClient library.
            // This should be called only once throughout the lifetime of the app.
            ConnectorPKG.Uninitialize();
        }
Esempio n. 3
0
        // The app is terminating
        void AppWillTerminate(Foundation.NSNotification notification)
        {
            Console.WriteLine("Received a notification UIApplication: " + notification);

            // Deregister from any/all notifications.
            Foundation.NSNotificationCenter.DefaultCenter.RemoveObserver(this);

            // Set the VidyoConnector to nil so it is garbage collected
            vc = null;

            // Uninitialize VidyoClient library.
            // This should be called only once throughout the lifetime of the app.
            ConnectorPKG.Uninitialize();
        }
Esempio n. 4
0
 public void Cleanup()
 {
     _connector.Disable();
     ConnectorPKG.Uninitialize();
 }
 // The app is terminating
 protected override void OnDestroy()
 {
     vc.Disable();
     ConnectorPKG.Uninitialize();
     base.OnDestroy();
 }