IRTPRPHFilter::OverridePayloadType

[This is preliminary documentation and subject to change.]

Set a new RTP payload type to be compared with the PT field in the RTP packet header. This overrides the default (static or dynamic) payload type determined by the handler. Can be used for such cases as setting negotiated dynamic payload types, setting a payload type for a generic handler, or overriding static defined payload types for specialized data. To be used at initialization time only.

HRESULT OverridePayloadType(
  BYTE bPayloadType
);
 

Parameters

bPayloadType
[in] The payload type identifier which will be verified in the RTP header.

Return Values

E_INVALIDARG
The bPayloadType value cannot be used (out of range).
NOERROR
The bPayloadType value will be used as the RTP payload type.