IRTCMediaRequestEvent::Accept

The Accept method specifies which requested media types will be accepted. The intersection of proposed media types (as returned by IRTCMediaRequestEvent::get_ProposedMedia) and the media types specified as the input for this method will be the media streams used in this session.

HRESULT Accept(longlMediaTypes);

Parameters

  • lMediaTypes
    [in] Integer value that contains a set of RTCMT_ constants describing the set of accepted media stream types.

Return Values

RTC methods may return an RTC_E_ constant.

Value Meaning
RTC_E_INVALID_OBJECT_STATE The media request is not in the incoming state.
RTC_E_PLATFORM_NOT_SUPPORTED The platform must be Windows 2000 or above.
RTC_E_FAIL The media request has already been accepted.
RTC_E_INVALID_SESSION_STATE The session is not in the RTCSS_INCOMING or RTCSS_CONNECTED state.

Remarks

If this method is not called, the RTC client will return the default media types when this interface is released. The default media types for a client can be determined by calling the IRTCClient::get_PreferredMediaTypes property.

Requirements

Redistributable: Requires Rtcdll.dll on Windows 2000, Windows XP, and Windows Server 2003.
Header: Declared in Rtccore.h.
Library: Included as a resource in Rtcdll.dll.
GUID: IID_IRTCMediaRequestEvent is defined as 52572D15-148C-4d97-A36C-2DA55C289D63.

See Also

IRTCMediaRequestEvent