-api-id | -api-type |
---|---|
M:Windows.Media.Devices.VideoDeviceController.GetAvailableMediaStreamProperties(Windows.Media.Capture.MediaStreamType) |
winrt method |
Gets a list of the supported encoding properties for the video device.
The type of media stream for which to get the properties.
A list of the supported encoding properties.
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.