VideoDeviceController.GetMediaStreamProperties(MediaStreamType) VideoDeviceController.GetMediaStreamProperties(MediaStreamType) VideoDeviceController.GetMediaStreamProperties(MediaStreamType) VideoDeviceController.GetMediaStreamProperties(MediaStreamType) VideoDeviceController.GetMediaStreamProperties(MediaStreamType) Method

Definition

Gets the encoding properties for the specified media stream type for the video device.

public : IMediaEncodingProperties GetMediaStreamProperties(MediaStreamType mediaStreamType)
IMediaEncodingProperties GetMediaStreamProperties(MediaStreamType mediaStreamType) const;
public IMediaEncodingProperties GetMediaStreamProperties(MediaStreamType mediaStreamType)
Public Function GetMediaStreamProperties(mediaStreamType As MediaStreamType) As IMediaEncodingProperties
var iMediaEncodingProperties = videoDeviceController.getMediaStreamProperties(mediaStreamType);

Parameters

mediaStreamType
MediaStreamType MediaStreamType MediaStreamType

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

Returns

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