Example #1
0
        private void RtcControl_IJoinedMeeting(object sender, UserArgs e)
        {
            ShowMessage("Welcome to Meeting : " + e.MeetingID, System.Windows.Media.Brushes.DarkSlateBlue, true);

            myAdorner = AttachLoadingAdorner(rtcControl, e.UserName);

            //if you do not want to start the participant video right away remove this ..
            rtcControl.StartVideo();

            //start viewing sessions other than e.Session which is my session
            ProcessParticipants(e.Participants, e.Session, e.Sharing);
        }
Example #2
0
        private CustomAdorner AttachLoadingAdorner(UIElement el, string textToDisplay)
        {
            CustomAdorner loading = new CustomAdorner(el);

            loading.FontSize      = 15;
            loading.OverlayedText = textToDisplay;

            loading.Typeface = new Typeface(FontFamily, FontStyles.Normal,
                                            FontWeights.Bold, FontStretch);

            var layer = AdornerLayer.GetAdornerLayer(el);

            layer.Add(loading);

            return(loading);
        }
Example #3
0
        private void AttachLoadingAdorner(UIElement el, string textToDisplay, string session)
        {
            CustomAdorner textOverlay = new CustomAdorner(el);

            textOverlay.FontSize      = 15;
            textOverlay.OverlayedText = textToDisplay;
            textOverlay.Tag           = session;
            textOverlay.Typeface      = new Typeface(FontFamily, FontStyles.Normal,
                                                     FontWeights.Bold, FontStretch);
            AdornerLayer.GetAdornerLayer(el).Add(textOverlay);

            if (adorners is null)
            {
                adorners = new List <CustomAdorner>();
            }

            adorners.Add(textOverlay);
        }