ITMedia::put_FormatCodes method

[ Rendezvous IP Telephony Conferencing controls and interfaces are not available for use in Windows Vista, Windows Server 2008, and subsequent versions of the operating system. The RTC Client API provides similar functionality.]

The put_FormatCodes method sets the list of media payload format codes. The variant contains a SAFEARRAY of BSTRs. Each BSTR within that array is a format code string.

Syntax

HRESULT put_FormatCodes(
  [in] VARIANT NewVal
);

Parameters

NewVal [in]

List of media payload format codes.

Return value

This method can return one of these values.

Return code Description
S_OK
Method succeeded.
E_INVALIDARG
The NewVal parameter is not valid.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.
E_FAIL
Unspecified error.
E_NOTIMPL
This method is not yet implemented.

Remarks

When a list of payload formats is given, this implies that all of these formats may be used in the session, but the first of these formats is the default format for the session. When the transport protocol is RTP, the format codes are RTP payload types.

Requirements

Requirement Value
TAPI version
Requires TAPI 3.0 or later
Header
Sdpblb.h
Library
Uuid.lib
DLL
Sdpblb.dll

See also

ITMedia

ITMedia::get_FormatCodes