如何通过 UCMA 2.0 以编程方式建立视频通话?
我正在尝试与 UCMA 2.0 建立视频通话。但是,我总是最终建立音频通话。
我发现AudioVideoCall的DefaultMediaType属性的默认值为MediaType.Audio。
示例代码是:
_call = new AudioVideoCall (_conversation);
_call.DefaultMediaType = MediaType.Video;
call.BeginEstablish(_yourSipUri, null , CallEstablishCompleted, _call);
你们知道使用 UCMA 2.0 和 OCS 2007 R2 的用户之间建立视频通话的正确方法吗?
I am trying to establish a video call with with UCMA 2.0. But, I always end up with establishing an audio call.
I found that default value of the DefaultMediaType property of the AudioVideoCall is MediaType.Audio.
Sample code is:
_call = new AudioVideoCall (_conversation);
_call.DefaultMediaType = MediaType.Video;
call.BeginEstablish(_yourSipUri, null , CallEstablishCompleted, _call);
Do you guys know the right way to establish a video call between users with UCMA 2.0 and OCS 2007 R2?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
出于多种原因,UCMA 不支持这一点。主要是 UCMA 无法对视频流执行任何操作。与文本和音频不同,UCMA 无法对视频进行任何识别,也无法生成任何视频。
UCMA 可以识别您所说或键入的内容,并且可以生成文本或音频(使用文本转语音)响应。视频则非常不同,它无法识别图像,也无法生成任何视频响应。尽管有技术可以完成这些事情,但它们远远超出了 UCMA 的处理范围。
另一件需要记住的重要事情是,并非所有呼叫者都支持视频,拥有识别所需质量的摄像头的人就更少了。视频的使用成本仍然非常昂贵(无论是计算成本还是带宽成本)。我预计在 Kinect(具有高质量摄像头和内置识别功能)等系统变得普遍之前,您不会看到对其的支持。
您没有提到这样做的目标是什么,所以我会做一个小假设,您正在寻找一种以编程方式在两方之间发起视频通话的方法。如果是这种情况,那么您真正需要的是 Communicator 2007(Lync 2010)SDK。这是一个用于自动化通信器客户端本身的 SDK。
Communication 2007 SDK: http://www.microsoft.com/download/en/details.aspx?id=10176" microsoft.com/download/en/details.aspx?id=10176
Lync 2010 SDK: http://www.microsoft.com/download/en/details.aspx?id =18898
UCMA doesn't support this, for a number of reasons. The primary being that there isn't anything UCMA can do with the video stream. Unlike text and audio, UCMA cannot do any recognition against video and it cannot generate any video.
UCMA can recognize what you speak or type, and it can generate text or audio (using Text-to-Speech) responses. Video is very different, it cannot recognize images and it couldn't generate any video responses. While the technology exists to do these things, they are far beyond the scope of what UCMA can handle.
Another important thing to remember is that not all callers have video support, and even fewer have a camera with the quality required to do recognition. Video is still very expensive to work with (both computationally and in bandwidth). I expect you won't see support for it until systems like Kinect (with high-quality cameras and built in recognition capabilities) become commonplace.
You didn't mention what the goal of this was so I'll make a small assumption that you're looking for a way to initiate a video call between two parties programmatically. If this is the case, what you really want here is the Communicator 2007 (of Lync 2010) SDK. This is an SDK for automating the communicator client itself.
Communication 2007 SDK: http://www.microsoft.com/download/en/details.aspx?id=10176
Lync 2010 SDK: http://www.microsoft.com/download/en/details.aspx?id=18898