MediaFrameSourceGroup MediaFrameSourceGroup MediaFrameSourceGroup MediaFrameSourceGroup MediaFrameSourceGroup Class

Definition

Represents a group of media frame sources that can be used simultaneously by a MediaCapture.

public : sealed class MediaFrameSourceGroup : IMediaFrameSourceGroup
struct winrt::Windows::Media::Capture::Frames::MediaFrameSourceGroup : IMediaFrameSourceGroup
public sealed class MediaFrameSourceGroup : IMediaFrameSourceGroup
Public NotInheritable Class MediaFrameSourceGroup Implements IMediaFrameSourceGroup
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

Get an instance of this class by calling FindAllAsync and selecting an instance from the returned list. If you know the unique identifier of a media frame source group, you can get an instance of this class by calling FromIdAsync.

Initialize a MediaCapture object to use the selected MediaFrameSourceGroup by assigning the group to the SourceGroup property of a MediaCaptureInitializationSettings object, and then passing that settings object into InitializeAsync.

For how-to guidance on using MediaFrameSource to capture frames, see Process media frames with MediaFrameReader.

Properties

DisplayName DisplayName DisplayName DisplayName DisplayName

Gets the human-readable name for the media frame source group.

Id Id Id Id Id

Gets a unique identifier for the media frame source group.

SourceInfos SourceInfos SourceInfos SourceInfos SourceInfos

Gets a list of MediaFrameSourceInfo objects that describe each media frame source in the group.

Methods

FindAllAsync() FindAllAsync() FindAllAsync() FindAllAsync() FindAllAsync()

Asynchronously retrieves a list of the available media frame source groups on the current device.

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Asynchronously gets the media frame source group with the specified ID.

GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector()

Gets a device selector string that can be used to initialize a DeviceWatcher, which allows you receive notifications when the set of available media frame source groups changes.

See Also