Share via


IRTCMediaRequestEvent::Accept

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method accepts the specified media stream types. These types and the proposed media stream types are retrieved by the IRTCMediaRequestEvent::ProposedMedia method from an intersection that defines the media streams used in the session.

Syntax

HRESULT Accept(
  long lMediaTypes
);

Parameters

  • lMediaTypes
    [in] RTCMT_ constants describing the accepted media stream types. Windows Embedded CE does not support RTCMT_VIDEO_SEND, RTCMT_VIDEO_RECEIVE and RTCMT_T120_SENDRECV media types.

Return Value

This method can return an RTC_E_ constant. The following table shows additional information about specific return values.

Value Meaning

RTC_E_INVALID_OBJECT_STATE

The media request is not in the incoming state.

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 the IRTCMediaRequestEvent interface is released. The application can determine the default media types for a client using IRTCClient::PreferredMediaTypes.

Requirements

Header rtccore.h, rtccore.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

IRTCMediaRequestEvent
IRTCClient::PreferredMediaTypes
IRTCMediaRequestEvent::ProposedMedia
IRTCMediaRequestEvent::Reject