Udostępnij za pośrednictwem


VideoDeviceController.GetMediaStreamProperties(MediaStreamType) Method

Definition

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

public:
 virtual IMediaEncodingProperties ^ GetMediaStreamProperties(MediaStreamType mediaStreamType) = GetMediaStreamProperties;
IMediaEncodingProperties GetMediaStreamProperties(MediaStreamType const& mediaStreamType);
public IMediaEncodingProperties GetMediaStreamProperties(MediaStreamType mediaStreamType);
function getMediaStreamProperties(mediaStreamType)
Public Function GetMediaStreamProperties (mediaStreamType As MediaStreamType) As IMediaEncodingProperties

Parameters

mediaStreamType
MediaStreamType

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

Returns

The 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