Jaa


MediaFrameSourceController Class

Definition

Allows you to get and set properties of a MediaFrameSource and to get a VideoDeviceController, which provides camera controls such as exposure, focus, and zoom.

public ref class MediaFrameSourceController 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 MediaFrameSourceController 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 MediaFrameSourceController
Public NotInheritable Class MediaFrameSourceController
Inheritance
Object Platform::Object IInspectable MediaFrameSourceController
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 the MediaFrameSourceController class by accessing the Controller property of a MediaFrameSource.

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

Version history

Windows version SDK version Value added
1703 15063 GetPropertyByExtendedIdAsync
1703 15063 SetPropertyByExtendedIdAsync
1803 17134 AudioDeviceController

Properties

AudioDeviceController

Gets an AudioDeviceController for a MediaFrameSource, which provides controls such as setting the volume level or muting the audio device.

VideoDeviceController

Gets a VideoDeviceController for a MediaFrameSource, which provides camera controls such as exposure, focus, and zoom.

Methods

GetPropertyAsync(String)

Asynchronously gets an object that contains the value of a MediaFrameSource property, if the property value is successfully retrieved, and describes the result status of the get operation.

GetPropertyByExtendedIdAsync(Byte[], IReference<UInt32>)

Asynchronously gets the value of the property with the specified ID from a MediaFrameSource, using an extended ID with custom header information and specifying the maximum buffer size required to store the result.

SetPropertyAsync(String, Object)

Asynchronously sets the value of a MediaFrameSource property and returns a MediaFrameSourceSetPropertyStatus object describing the result status of the set operation.

SetPropertyByExtendedIdAsync(Byte[], Byte[])

Asynchronously sets the value of the property with the specified ID on a MediaFrameSource, using an extended ID with custom header information.

Applies to

See also