IRTCMediaRequestEvent::Accept (Windows CE 5.0)
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.
HRESULT Accept( long lMediaTypes);
Parameters
- lMediaTypes
[in] RTCMT_ constants describing the accepted media stream types. Windows CE does not support RTCMT_VIDEO_SEND, RTCMT_VIDEO_RECEIVE and RTCMT_T120_SENDRECV media types.
Return Values
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
OS Versions: Windows CE .NET 4.2 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Uuid.lib.
See Also
IRTCMediaRequestEvent | IRTCClient::PreferredMediaTypes | IRTCMediaRequestEvent::ProposedMedia | IRTCMediaRequestEvent::Reject
Send Feedback on this topic to the authors