Sliverlight 4 has microphone capture ability

March 15, 2010 · Posted in general · 1 Comment 

Announced today at Microsoft’s MIX event, Silverlight 4 has microphone capture ability. A Word doc available here: http://bit.ly/bOidXW (pg 25) details the features and includes a C# code sample.

Webcam and Microphone Support

Silverlight now has webcam and microphone support. Through its device capture API Silverlight can determine which video and audio devices are connected to the computer. The API exposes features to retrieve the devices, prompt the user for permission to access the devices, and use to the devices to capture audio and/or video.

The System.Windows.Media namespace exposes several classes for hardware device capture. The CaptureDeviceConfiguration class’s AllowedDeviceAccess property returns true if the user has already granted access to the devices during the current session. The CaptureDeviceConfiguration.RequestDeviceAccess method requests access to the devices from the user.