Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.58 KB

videodevicecontroller_getavailablemediastreamproperties_946867392.md

File metadata and controls

28 lines (20 loc) · 1.58 KB
-api-id -api-type
M:Windows.Media.Devices.VideoDeviceController.GetAvailableMediaStreamProperties(Windows.Media.Capture.MediaStreamType)
winrt method

Windows.Media.Devices.VideoDeviceController.GetAvailableMediaStreamProperties

-description

Gets a list of the supported encoding properties for the video device.

-parameters

-param mediaStreamType

The type of media stream for which to get the properties.

-returns

A list of the supported encoding properties.

-remarks

The encoding properties returned from this method can either be of type VideoEncodingProperties or ImageEncodingProperties, regardless of the stream type you specify. For this reason, you must check the type of each returned IMediaEncodingProperties object and cast to the appropriate type before accessing the properties of the object. The article Set media encoding properties for MediaCapture provides the complete code for a helper class that handles all necessary type-checking and casting for you.

-examples

-see-also

Set media encoding properties for MediaCapture