Freigeben über


IComponentType::put_MediaType method (tuner.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

The put_MediaType method sets the DirectShow AM_MEDIA_TYPE structure for the component.

Syntax

HRESULT put_MediaType(
  [in] AM_MEDIA_TYPE *MediaType
);

Parameters

[in] MediaType

An AM_MEDIA_TYPE structure that specifies the major type, subtype, format, and so on.

Return value

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

Requirements

Requirement Value
Minimum supported client Windows�XP [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header tuner.h

See also

AM_MEDIA_TYPE

IComponentType Interface