Exemple #1
0
        private async Task EndCallAsync()
        {
            DefaultVisibilities();
            await device.CleanUpAsync();


            RemoteVideo.Stop();

            // Start waiting for a new CallButton.
            await InitializeAsync();

            PreviewVideo.Source = null;
        }
        private async Task EndCallAsync()
        {
            await device.CleanUpAsync();

            // end the CallButton. session
            await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, (() =>
            {
                RemoteVideo.Stop();
                RemoteVideo.Source = null;
            }));

            // Start waiting for a new CallButton.
            await InitializeAsync();
        }
        protected async override void OnNavigatingFrom(NavigatingCancelEventArgs e)
        {
            base.OnNavigatingFrom(e);

            if (activated)
            {
                RemoteVideo.Stop();
                RemoteVideo.Source = null;
            }

            await device.CleanUpAsync();

            device = null;
        }
        private async Task EndCallAsync()
        {
            await device.CleanUpAsync();

            // end the call session
            await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, (() =>
            {
                RemoteVideo.Visibility = Visibility.Collapsed;
                CallPoster.Visibility = Visibility.Visible;
                RemoteVideo.Stop();
                RemoteVideo.Source = null;
            }));

            // Start waiting for a new call
            await InitializeAsync();
        }