MediaFrameSourceGroup Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a group of media frame sources that can be used simultaneously by a MediaCapture.
public ref class MediaFrameSourceGroup sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaFrameSourceGroup final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaFrameSourceGroup
Public NotInheritable Class MediaFrameSourceGroup
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
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 |
Gets the human-readable name for the media frame source group. |
Id |
Gets a unique identifier for the media frame source group. |
SourceInfos |
Gets a list of MediaFrameSourceInfo objects that describe each media frame source in the group. |
Methods
FindAllAsync() |
Asynchronously retrieves a list of the available media frame source groups on the current device. |
FromIdAsync(String) |
Asynchronously gets the media frame source group with the specified ID. |
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. |