Home > Articles > Web Development > ASP.NET

Using Silverlight 4 APIs to Interact with Webcams and Microphones from VB 2010

  • PrintPrint
  • Share ThisShare This
  • DiscussDiscuss

From the author of

With the release of Silverlight 4, Microsoft introduced new APIs for interacting with multimedia devices such as webcams and microphones from Rich Internet Applications. Alessandro Del Sole, author of Visual Basic 2010 Unleashed, provides an overview of these features, showing how to create multimedia applications from the point of view of a Visual Basic developer.

Introduction

In April 2010, Microsoft released version 4 of Silverlight, the cross-browser, cross-platform, and cross-device plug-in required for building and running so-called "Rich Internet Applications." This version of Silverlight introduced several new features that developers can use for enhancing the user experience in their applications. Among these new features, Silverlight 4 introduced new APIs for interacting with devices such as webcams and microphones. In this article, I'll describe how the Visual Basic 2010 programming language can leverage webcams and microphones from Silverlight applications.

New Silverlight API Features

Basically, the new Silverlight APIs easily allow you to do the following:

  • Retrieve the list of installed webcams and microphones.
  • Get video and audio from selected devices.
  • Capture "still images" from webcams asynchronously.

You use .NET namespaces and classes to access these kinds of devices, as described in the next section.

Namespaces and Classes

To access multimedia devices, you use classes exposed by the System.Windows.Media namespace. In particular, this namespace exposes the following classes:

The combination of these objects provides great control over devices, together with full integration with your applications.

In the next section, you'll learn how to build Silverlight applications that enable video and audio devices, and how to combine these new features with existing features such as data binding.

  • Share ThisShare This
  • Save To Your Account
Visual Basic 2010 Unleashed

From the author of

Visual Basic 2010 Unleashed

Learn MoreAdd To Cart

Discussions

comments powered by Disqus

Related Resources

Community Tips: Host a Charity Book Drive at Your Next User Group Event
By on September 15, 2010Comments

Gathering a group of talented minds for your next Code Camp, PodCamp, SQL Saturday, LinuxFest, conference or summit? Borrow a page from the St. Louis Day of .NET organizers and host a charity book drive. The surrounding community (and your tired, dusty bookshelves) will thank you.

Community Tips: Starting a User Group Library
By on August 3, 2010Comments

The Central Penn Adobe User Group (CPAUG) uses a library program to share books from different publishers with members. A short Q&A with group leader Megan Fister provides some great tips for starting your own.

User Group Organizations: Finding Support in the Greater IT Community
By on July 29, 2010Comments

Birds of a feather flock together, right? If you’re already a member of an established user group or looking for other like-minded technology evangelists, connecting with peers is an important part of being an active voice in the IT community.

See All Related Blogs