ITLegacyCallMediaControl::MonitorMedia method (tapi3if.h)

The MonitorMedia method sets monitoring for a given media type on the current call. This method enables and disables the detection of media types (modes) on the specified call. When a media type is detected, a message is sent to the application. For more information, see lineMonitorMedia.

Syntax

HRESULT MonitorMedia(
  [in] long lMediaType
);

Parameters

[in] lMediaType

Indicator of media type.

Return value

This method can return one of these values.

Return code Description
S_OK
Method succeeded.
E_INVALIDARG
The lMediaType parameter is not valid.
E_FAIL
The associated call object is not valid.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.

Requirements

Requirement Value
Target Platform Windows
Header tapi3if.h (include Tapi3.h)
Library Uuid.lib
DLL Tapi3.dll

See also

ITLegacyAddressMediaControl

ITLegacyCallMediaControl