O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Silverlight Webcam API

The Silverlight webcam API came to the phone with the Windows Phone 7.5 SDK release. If you already have code for processing audio and video using the System.Windows.Media.CaptureSource class, you will feel right at home. CaptureSource allows you to capture both audio and video, and when used in conjunction with a FileSink class, allows you to save video to isolated storage.

This section creates a simplified version of the Photo Camera page presented in the previous section. A page is created that allows the user to capture still images as well as video, and in both cases, you see how captured data is written to isolated storage.

The sample for this section includes a page named CaptureSourceView and its viewmodel ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required