快捷搜索:  MTU2MjQxMjI2MA`  as  lzyq858.com`

Silverlight访问摄像头和麦克风(1)客户端视听

silverlight4供给了摄像头机麦克风造访的API,考试测验了一下,还不错。现在将简单的法度榜样记录一下

sl前台呢,有两个控件,一个是用于显示摄像头捕捉到的内容,另一个是个按钮用来启动摄像头。

代码

Rectangle Height="169" HorizontalAlignment="Left" Margin="37,21,0,0" Name="rectangle1" Stroke="Black" StrokeThickness="1" VerticalAlignment="Top" Width="236" />

Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="120,196,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />

您可能还会对下面的文章感兴趣: