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 ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.