Exemple #1
0
        private AppController(LyncClient client, Automation automation)
        {
            this.client     = client;
            this.automation = automation;

            // Always start video on AV modality connect
            ExecuteAction.InState <AVModality>(client, ModalityTypes.AudioVideo, ModalityState.Connected, (conversation, modality) =>
            {
                CallMedia.StartVideo(modality);
            });

            // Always end the conversation (and close the window) on AV modality disconnect
            ExecuteAction.InState <AVModality>(client, ModalityTypes.AudioVideo, ModalityState.Disconnected, (conversation, modality) =>
            {
                conversation.End();
            });
        }
Exemple #2
0
        public void StartVideo(Conversation conversation)
        {
            var av = (AVModality)conversation.Modalities[ModalityTypes.AudioVideo];

            CallMedia.StartVideo(av);
        }