我可以使用silverlight 4.0进行视频通信吗?
使用silverlight 4.0,可以在屏幕上显示用户的实时视频: 这是代码
VideoBrush videoBrush = new VideoBrush();
CaptureSource captureSource = new CaptureSource
{
VideoCaptureDevice =
CaptureDeviceConfiguration.GetAvailableVideoCaptureDevices().First()
};
bool b = CaptureDeviceConfiguration.RequestDeviceAccess();
videoBrush.SetSource(captureSource);
captureSource.Start();
myrect.Fill = videoBrush;
但是,我正在寻找一种向其他人展示视频的方法 - 在屏幕上看到自己并不是那么有趣。
是否可以?
我需要自己的服务器吗?我可以使用 clowd 服务进行通信吗?
是否存在性能问题?
With silverlight 4.0, it is possible to show a live video of the user on the screen:
Here is the code
VideoBrush videoBrush = new VideoBrush();
CaptureSource captureSource = new CaptureSource
{
VideoCaptureDevice =
CaptureDeviceConfiguration.GetAvailableVideoCaptureDevices().First()
};
bool b = CaptureDeviceConfiguration.RequestDeviceAccess();
videoBrush.SetSource(captureSource);
captureSource.Start();
myrect.Fill = videoBrush;
However, I am looking at a way to show the video to someone else - seeing oneself on screen is not that interesting.
Is it possible?
Do I need my own server? Can I use clowd services to do the communication?
Are there performance issues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SL4 中不会有任何内置功能。
这是我所知道的最新信息(自 SL4 beta 以来我一直在关注这一点):
http://forums.silverlight.net/forums/p/145729/324400。 aspx
http://www.codeproject.com/KB/IP/SilverlightVoiceVideoChat .aspx
并且 Jeremiah Morrill 做了一个用于 SL 编码/解码的开源项目:http://silverlightencoder.codeplex。 com
There will be no built in functionality for that in SL4.
This is the latest information I know (and I keep an eye on this since the SL4 beta):
http://forums.silverlight.net/forums/p/145729/324400.aspx
http://www.codeproject.com/KB/IP/SilverlightVoiceVideoChat.aspx
And Jeremiah Morrill made an open source project for SL encoding / decoding: http://silverlightencoder.codeplex.com
Silverlight 4.0 支持网络摄像头,并且使用视频画笔您可以呈现视频。但是,它不提供网络/流管道来从网络摄像头捕获流并将其发送到对等方进行实时显示。
我想微软和第三方供应商正在研究这些中间部分。
Silverlight 4.0 supports webcams and with the video brush you can present a video. It does not, however, provide the network/streaming plumbing to capture a stream from a webcam and send it to a peer for real-time display.
I would imagine those middle bits are being worked on by Microsoft and third party vendors.