在 LyncSDK 视频对话中将传出视频源设置为 BitmapSource?
所以我需要做一个奇怪的组合,我正在尝试使用 Kinect 作为网络摄像头和 Microsoft Lync 作为基础来构建一个会议工具。
不要问为什么是Kinect?这是一个很长的故事,但必须......无论如何,我可以从 Kinect 的相机获取流,如下所示,但我真的不知道如何将其作为 lync 中的传出视频传递?
void nui_VideoFrameReady(object sender, ImageFrameReadyEventArgs e)
{
PlanarImage Image = e.ImageFrame.Image;
video.Source = BitmapSource.Create(
Image.Width, Image.Height, 96, 96, PixelFormats.Bgr32, null, Image.Bits, Image.Width * Image.BytesPerPixel);
}
我在 Microsoft.Lync.Model.Conversation.AudioVideo
下找到了一些相关的类,例如 VideoChannel
、Channel
或 VideoDevice
> 但似乎也找不到类似源属性的东西。另外,我不知道如果找到源属性该怎么办,在 Microsoft Lync SDK 中实现 VideoChannels 对我来说似乎有点复杂。我真的需要帮助。
我正在尝试构建一个 wpf 应用程序,但对 Lync sdk 并没有真正的经验。任何帮助将不胜感激!谢谢。
编辑: 好的,根据 Paul 的回答,从现在开始我不再只使用 Lync SDK 来限制自己。如果有其他解决方案,例如使用 UCMA 或其他解决方案。我很开放。 感谢您的帮助!
So I have a strange combination that I need to do, I'm trying to build a conferencing tool using Kinect as a webcam and Microsoft Lync as a base.
Don't ask about why Kinect? its a long story but a must.. Anyway I can get the stream from the Kinect's camera as following, but I don't really know how to pass it as outgoing video in lync?
void nui_VideoFrameReady(object sender, ImageFrameReadyEventArgs e)
{
PlanarImage Image = e.ImageFrame.Image;
video.Source = BitmapSource.Create(
Image.Width, Image.Height, 96, 96, PixelFormats.Bgr32, null, Image.Bits, Image.Width * Image.BytesPerPixel);
}
I've found some related classes under Microsoft.Lync.Model.Conversation.AudioVideo
like VideoChannel
, Channel
or VideoDevice
but can't seem to find something like a source property for those either. Also I don't know what to do if i find the source property, it seems a little complicated for me to implement VideoChannels in Microsoft Lync SDK. I really need help.
I'm trying to build a wpf application, and am not really experienced with the Lync sdk. Any help will be extremely appreciated! Thanks.
Edit:
Okay so according to Paul's answer I'm not restricting myself with Lync SDK only from now on. If there is another solution like using UCMA, or anything. I'm open.
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Windows 是否将 kinect 摄像头识别为视频设备?如果是这样,那么 Lync 客户端应该允许您在“选项”屏幕下选择它作为视频源。您还可以通过编程方式选择它,但我不在我的机器旁,并且不记得对我的头尖进行的调用。
如果没有,那么我认为关键是让kinect相机被windows识别(可能使用kinect SDK?)。否则,我认为没有办法使用 Lync SDK 以编程方式将视频从 kinect 摄像头流式传输到 Lync 视频通话。
Does Windows recognise the kinect camera as a video device? If so, then the Lync client should allow you to select it as the video source under the Options screen. You'll also be able to select it programatically, but I'm not at my machine and can't remember the call to make off the tip of my head.
If not, then I think the key is getting the kinect camera recognised by windows (possibly using the kinect SDK?). Otherwise, I don't think there is a way to programatically stream video from the kinect camera to a Lync video call using the Lync SDK.