Пример #1
0
        private void SetupCommands()
        {
            var commands = new List <Command>();

            Command command = new Command();

            command.Obj      = imgChat;
            command.Execute += delegate() {
                model.ShowChat = !model.ShowChat;
            };
            commands.Add(command);

            command          = new Command();
            command.Obj      = imgMuteAudio;
            command.Execute += delegate() {
                model.AudioMuted = !model.AudioMuted;
                rtcControl.MuteAudio(model.AudioMuted);
            };
            commands.Add(command);

            command          = new Command();
            command.Obj      = imgMuteVideo;
            command.Execute += delegate() {
                model.VideoMuted = !model.VideoMuted;
                rtcControl.MuteVideo(model.VideoMuted);
            };
            commands.Add(command);


            command          = new Command();
            command.Obj      = imgLeave;
            command.Execute += delegate() {
                rtcControl.LeaveMeeting();
            };
            commands.Add(command);



            foreach (var item in commands)
            {
                CommandHelper c = new CommandHelper((UIElement)item.Obj);
                c.AddCommand(item);
            }
        }
Пример #2
0
 private void btnMuteVideo_CheckedChanged(object sender, EventArgs e)
 {
     iconfRTC.MuteVideo(btnMuteVideo.Checked);
 }