Udostępnij za pośrednictwem


VideoDeviceController.GetAvailableMediaStreamProperties Method

Definition

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

public:
 virtual IVectorView<IMediaEncodingProperties ^> ^ GetAvailableMediaStreamProperties(MediaStreamType mediaStreamType) = GetAvailableMediaStreamProperties;
IVectorView<IMediaEncodingProperties> GetAvailableMediaStreamProperties(MediaStreamType const& mediaStreamType);
public IReadOnlyList<IMediaEncodingProperties> GetAvailableMediaStreamProperties(MediaStreamType mediaStreamType);
function getAvailableMediaStreamProperties(mediaStreamType)
Public Function GetAvailableMediaStreamProperties (mediaStreamType As MediaStreamType) As IReadOnlyList(Of IMediaEncodingProperties)

Parameters

mediaStreamType
MediaStreamType

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

Returns

A list of the supported encoding properties.

Implements

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.

Applies to

See also