启动音频或视频的事件 [英] Event of starting audio or video

查看:53
本文介绍了启动音频或视频的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我想在桌面应用中声明一个与lync交互的事件,并在视频或音频通话开始时调用该事件。

I would like to declare an event inside a desktop app that interacts with lync and call the event when a video or audio call starts.

有谁知道怎么做?

提前致谢。

推荐答案

UCMA SDK有一些事件可以告诉您AV呼叫或即时消息到达的时间。例如:

The UCMA SDK has events that tell you when an AV call or IM arrives. For example:

  // Delegate that is called when an incoming AudioVideoCall arrives. 
        void AudioVideoCall_Received(object sender, CallReceivedEventArgs<AudioVideoCall> e) 
        { 
            _audioVideoCall = e.Call; 
            _audioVideoCall.AudioVideoFlowConfigurationRequested += this.AudioVideoCall_FlowConfigurationRequested; 
 
            // For logging purposes, register for notification of the StateChanged event on the call. 
            _audioVideoCall.StateChanged += 
                      new EventHandler<CallStateChangedEventArgs>(AudioVideoCall_StateChanged); 
 
            // Remote Participant URI represents the far end (caller) in this conversation.  
            Console.WriteLine("Call received from: " + e.RemoteParticipant.Uri); 
 
            // Now, accept the call. CallAcceptCB will run on the same thread. 
            _audioVideoCall.BeginAccept(CallAcceptCB, _audioVideoCall); 
        } 




但是,我不喜欢我不知道如何使用Lync SDK做到这一点。

However, I don't know of any way to do this using the Lync SDK.


这篇关于启动音频或视频的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆