Esempio n. 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);
        }
Esempio n. 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);
        }