مشاركة عبر


MediaFrameSourceInfo Class

Definition

Provides information about a MediaFrameSource.

public ref class MediaFrameSourceInfo 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 MediaFrameSourceInfo 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 MediaFrameSourceInfo
Public NotInheritable Class MediaFrameSourceInfo
Inheritance
Object Platform::Object IInspectable MediaFrameSourceInfo
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 accessing the Info property of a MediaFrameSource object or by accessing the SourceInfos property of a MediaFrameSourceGroup object which represents a group of media frame sources..

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

Version history

Windows version SDK version Value added
1803 17134 ProfileId
1803 17134 VideoProfileMediaDescription
2004 19041 GetRelativePanel

Properties

CoordinateSystem

Gets an object representing the spatial coordinate system in which the data from a MediaFrameSource is expressed.

DeviceInformation

Gets a DeviceInformation object that can be used to access properties of a MediaFrameSource device.

Id

Gets the unique identifier for a MediaFrameSource. Use this identifier as the key when getting a MediaFrameSource instance from MediaCapture.FrameSources dictionary.

IsShareable

Gets a value indicating whether the associated stream can be open in shared mode.

MediaStreamType

Gets a value indicating the stream type of a MediaFrameSource, such as photo, video, or audio.

ProfileId

Gets the unique identifier of the MediaCaptureVideoProfile associated with the MediaFrameSourceInfo.

Properties

Gets a read-only map of properties for a MediaFrameSource.

SourceGroup

Gets the MediaFrameSourceGroup to which a MediaFrameSource belongs.

SourceKind

Gets a value indicating the kind of media frames generated by a MediaFrameSource, such as color, depth, or infrared.

VideoProfileMediaDescription

Gets a read-only list of MediaCaptureVideoProfileMediaDescription objects which specify a group of capture settings that are supported by a video profile.

Methods

GetRelativePanel(DisplayRegion)

Gets the relative panel location of the provided DisplayRegion when using the associated MediaFrameSource.

Applies to

See also