public void ClosePod() { //call unjoin method try { if (_MyMeetingRole == MeetingRoles.Host) { if (channelNetP2P != null) { channelNetP2P.svcClose(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName); } } foreach (ctlUserVideo ctl1 in cnvVideos.Children) { ctl1.ClosePod(); } if (dispTimer != null) { dispTimer.Stop(); } if (channelHttp != null) { channelHttp = null; } if (channelNetP2P != null && channelNetP2P.State == CommunicationState.Opened) { channelNetP2P.svcUnJoin(VMuktiInfo.CurrentPeer.DisplayName); } if (channelNetP2P != null) { channelNetP2P.Close(); channelNetP2P.Dispose(); channelNetP2P = null; } cnvVideos.Children.Clear(); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ClosePod", "ctlVideo.xaml.cs"); } }