MediaFrameFormat MediaFrameFormat MediaFrameFormat MediaFrameFormat MediaFrameFormat Class

Definition

Describes the format of a media frame obtained from a MediaFrameSource and represented by a MediaFrameReference.

public : sealed class MediaFrameFormat
struct winrt::Windows::Media::Capture::Frames::MediaFrameFormat
public sealed class MediaFrameFormat
Public NotInheritable Class MediaFrameFormat
// 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

The MediaFrameSource class uses this object to specify the current format of the media frames it generates. Get the current format of a media frame source by accessing the CurrentFormat property. Set the current format of a media frame source by calling SetFormatAsync.

Get the format of a media frame represented by a MediaFrameReference by accessing the Format property.

Get the format of a video frame represented by a VideoMediaFrame by accessing the VideoFormat property and then using the returned object's MediaFrameFormat property.

Version history

Windows version SDK version Value added
1803 17134 AudioEncodingProperties

Properties

AudioEncodingProperties AudioEncodingProperties AudioEncodingProperties AudioEncodingProperties AudioEncodingProperties

Gets an AudioEncodingProperties object that provides information about the audio data in an audio frame. This includes information like the bitrate, sample rate, and channel count of the audio data.

FrameRate FrameRate FrameRate FrameRate FrameRate

Gets the frame rate of the media frame.

MajorType MajorType MajorType MajorType MajorType

Gets a string identifying the major type of a media frame.

Properties Properties Properties Properties Properties

Gets a map of properties for the frame format.

Subtype Subtype Subtype Subtype Subtype

Gets a string identifying the subtype of a media frame.

VideoFormat VideoFormat VideoFormat VideoFormat VideoFormat

Gets an object describing the image format of a video media frame.