Export (0) Print
Expand All

VideoBrush.SetSource Method (CaptureSource)

Silverlight

Sets the source of the VideoBrush using a video capture source

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

public void SetSource(
	CaptureSource source
)

Parameters

source
Type: System.Windows.Media.CaptureSource
A CaptureSource as obtained from video capture out of a VideoSink.

To obtain a CaptureSource for video, you must derive from VideoSink. Using your derived VideoSink, you can initiate a capture and set it into the VideoSink.CaptureSource by calling CaptureSource.Start. You typically also need to specifically request client permission for capture device access; if you do not have user permission, requesting information from a CaptureSource will throw exceptions. For more information on obtaining capture device access, see CaptureDeviceConfiguration.

The scenario for SetSource is to provide a simple playback capability for captured video such that it can easily be displayed in client UI without having to process individual frames of video or video formats. Other more advanced scenarios for using a video CaptureSource exist whereby you can access the raw video; for information on these scenarios, see VideoSink.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft