次の方法で共有


IRTCSession2::AnswerWithSessionDescription (Windows Embedded CE 6.0)

1/6/2010

This method accepts an incoming request for a session and provides the session description with the reply. The application can call the method on any incoming session, including a session REINVITE request.

Syntax

HRESULT AnswerWithSessionDescription(
  BSTR bstrContentType,
  BSTR bstrSessionDescription
);

Parameters

  • bstrContentType
    [in] The content type for the session description of the reply message. This can be the content type received from the incoming session or an entirely new content type.
  • bstrSessionDescription
    [in] The session description included in the reply. This can be the description received from the incoming session or an entirely new description.

Return Value

This method can return an RTC_E_ constant.

The following table shows additional information about specific return values.

Value Meaning

RTC_E_MEDIA_ENABLED

The media is not enabled.

RTC_E_INVALID_SESSION_STATE

The session is not in the incoming state.

Remarks

This method allows applications to handle negotiations for a session. The application can choose to handle session negotiations for several reasons; for example, when it wants to include media stacks not supported by the RTC Client API.

Note

The content type specified in bstrContentType is application-specific. The application should ensure that the called party is able to decipher the content type of the session description. The request for an incoming session might fail if the application cannot decipher the content of the session description.

Requirements

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

See Also

Reference

IRTCSession2