VideoDeviceController.GetAvailableMediaStreamProperties(MediaStreamType) VideoDeviceController.GetAvailableMediaStreamProperties(MediaStreamType) VideoDeviceController.GetAvailableMediaStreamProperties(MediaStreamType) VideoDeviceController.GetAvailableMediaStreamProperties(MediaStreamType) VideoDeviceController.GetAvailableMediaStreamProperties(MediaStreamType) Method

Definition

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

public : IVectorView<IMediaEncodingProperties> GetAvailableMediaStreamProperties(MediaStreamType mediaStreamType)
IVectorView<IMediaEncodingProperties> GetAvailableMediaStreamProperties(MediaStreamType mediaStreamType) const;
public IReadOnlyList<IMediaEncodingProperties> GetAvailableMediaStreamProperties(MediaStreamType mediaStreamType)
Public Function GetAvailableMediaStreamProperties(mediaStreamType As MediaStreamType) As IReadOnlyList<IMediaEncodingProperties>(Of IMediaEncodingProperties)
var iVectorView = videoDeviceController.getAvailableMediaStreamProperties(mediaStreamType);

Parameters

mediaStreamType
MediaStreamType MediaStreamType MediaStreamType

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

Returns

IReadOnlyList<IMediaEncodingProperties> IReadOnlyList<IMediaEncodingProperties> IReadOnlyList<IMediaEncodingProperties>

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.

See also